From: Dan Vanderkam Date: Thu, 18 Jul 2013 19:49:19 +0000 (+0200) Subject: remove some dead code X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=8ae923e8f65beff8f06038bb8d9770946a48838b;p=dygraphs.git remove some dead code --- diff --git a/dygraph-utils.js b/dygraph-utils.js index e2e8391..648adbd 100644 --- a/dygraph-utils.js +++ b/dygraph-utils.js @@ -1024,30 +1024,6 @@ Dygraph.isPixelChangingOptionList = function(labels, attrs) { }; /** - * Compares two arrays to see if they are equal. If either parameter is not an - * array it will return false. Does a shallow compare - * Dygraph.compareArrays([[1,2], [3, 4]], [[1,2], [3,4]]) === false. - * @param {!Array.} array1 first array - * @param {!Array.} array2 second array - * @return {boolean} True if both parameters are arrays, and contents are equal. - * @template T - */ -Dygraph.compareArrays = function(array1, array2) { - if (!Dygraph.isArrayLike(array1) || !Dygraph.isArrayLike(array2)) { - return false; - } - if (array1.length !== array2.length) { - return false; - } - for (var i = 0; i < array1.length; i++) { - if (array1[i] !== array2[i]) { - return false; - } - } - return true; -}; - -/** * @param {!CanvasRenderingContext2D} ctx the canvas context * @param {number} sides the number of sides in the shape. * @param {number} radius the radius of the image.