From 4ebd35f8453108e87d554bfd787af4e5f210e387 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 9 Mar 2021 14:59:17 -0700 Subject: [PATCH] Remove unused functions --- src/customisations/Media.ts | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/customisations/Media.ts b/src/customisations/Media.ts index 812dd974a9..f262179f3d 100644 --- a/src/customisations/Media.ts +++ b/src/customisations/Media.ts @@ -123,30 +123,6 @@ export class Media { public downloadSource(): Promise { return fetch(this.srcHttp); } - - /** - * Downloads the thumbnail media with the requested characteristics. If no thumbnail media is present, - * this throws an exception. - * @param {number} width The desired width of the thumbnail. - * @param {number} height The desired height of the thumbnail. - * @param {"scale"|"crop"} mode The desired thumbnailing mode. Defaults to scale. - * @returns {Promise} Resolves to the server's response for chaining. - */ - public downloadThumbnail(width: number, height: number, mode: ResizeMethod = "scale"): Promise { - if (!this.hasThumbnail) throw new Error("Cannot download non-existent thumbnail"); - return fetch(this.getThumbnailHttp(width, height, mode)); - } - - /** - * Downloads a thumbnail of the source media with the requested characteristics. - * @param {number} width The desired width of the thumbnail. - * @param {number} height The desired height of the thumbnail. - * @param {"scale"|"crop"} mode The desired thumbnailing mode. Defaults to scale. - * @returns {Promise} Resolves to the server's response for chaining. - */ - public downloadThumbnailOfSource(width: number, height: number, mode: ResizeMethod = "scale"): Promise { - return fetch(this.getThumbnailOfSourceHttp(width, height, mode)); - } } /**