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)); - } } /**