From 8ae923e8f65beff8f06038bb8d9770946a48838b Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Thu, 18 Jul 2013 21:49:19 +0200 Subject: [PATCH] remove some dead code --- dygraph-utils.js | 24 ------------------------ 1 file changed, 24 deletions(-) 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. -- 2.7.4