From 9bce0e696cfa81a5b9091d179fb77554789c35d7 Mon Sep 17 00:00:00 2001 From: jonasengelmann <40031476+jonasengelmann@users.noreply.github.com> Date: Mon, 22 Aug 2022 15:31:35 +0200 Subject: [PATCH] removed redundant EuclideanModulo function --- src/openseadragon.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/openseadragon.js b/src/openseadragon.js index 6a3d734f..a32c5dd0 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -1634,7 +1634,7 @@ function OpenSeadragon( options ){ /** * Compute the modulo of a number but makes sure to always return - * a positive value. + * a positive value (also known as Euclidean modulo). * @param {Number} number the number to compute the modulo of * @param {Number} modulo the modulo * @returns {Number} the result of the modulo of number @@ -1647,15 +1647,6 @@ function OpenSeadragon( options ){ return result; }, - /** - * Computes Euclidean modulo of m % n. - * @param {Number} number the number to compute the modulo of - * @param {Number} modulo the modulo - * @returns {Number} the result of the modulo of number - */ - euclideanModulo: function(number, modulo) { - return ( ( number % modulo ) + modulo ) % modulo; - }, /** * Determines if a point is within the bounding rectangle of the given element (hit-test).