diff --git a/src/mixins/collection.mixin.js b/src/mixins/collection.mixin.js index 650d8eef..dc4df82f 100644 --- a/src/mixins/collection.mixin.js +++ b/src/mixins/collection.mixin.js @@ -122,15 +122,5 @@ fabric.Collection = { memo += current.complexity ? current.complexity() : 0; return memo; }, 0); - }, - - /** - * Makes all of the collection objects grayscale (i.e. calling `toGrayscale` on them) - * @return {Self} thisArg - */ - toGrayscale: function() { - return this.forEachObject(function(obj) { - obj.toGrayscale(); - }); } }; diff --git a/src/shapes/path_group.class.js b/src/shapes/path_group.class.js index c051e938..bfeacb02 100644 --- a/src/shapes/path_group.class.js +++ b/src/shapes/path_group.class.js @@ -185,18 +185,6 @@ }, 0); }, - /** - * Makes path group grayscale - * @return {fabric.PathGroup} thisArg - */ - toGrayscale: function() { - var i = this.paths.length; - while (i--) { - this.paths[i].toGrayscale(); - } - return this; - }, - /** * Returns all paths in this path group * @return {Array} array of path objects included in this path group