refactor: Remove unused canvas methods

This commit is contained in:
Lokesh Dhakar
2019-05-26 20:28:38 -07:00
parent 20c33cc3bb
commit 9cea24a6bf

View File

@@ -36,14 +36,6 @@ var CanvasImage = function (image) {
this.context.drawImage(image, 0, 0, this.width, this.height); 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 () { CanvasImage.prototype.getPixelCount = function () {
return this.width * this.height; return this.width * this.height;
}; };