From 9cea24a6bfe0e9cbdaade9f3a6faac6824380089 Mon Sep 17 00:00:00 2001 From: Lokesh Dhakar Date: Sun, 26 May 2019 20:28:38 -0700 Subject: [PATCH] refactor: Remove unused canvas methods --- src/color-thief.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/color-thief.js b/src/color-thief.js index d5bc5da..3092e5d 100644 --- a/src/color-thief.js +++ b/src/color-thief.js @@ -36,14 +36,6 @@ var CanvasImage = function (image) { this.context.drawImage(image, 0, 0, this.width, this.height); }; -CanvasImage.prototype.clear = function () { - this.context.clearRect(0, 0, this.width, this.height); -}; - -CanvasImage.prototype.update = function (imageData) { - this.context.putImageData(imageData, 0, 0); -}; - CanvasImage.prototype.getPixelCount = function () { return this.width * this.height; };