From 1a5207ece31b906fcc86eecb880d9606d128188a Mon Sep 17 00:00:00 2001 From: Project Nayuki Date: Sat, 23 Jun 2018 16:18:34 +0000 Subject: [PATCH] Deleted unused method in JavaScript code (related to commit b86466ecd5b0). --- javascript/qrcodegen.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/javascript/qrcodegen.js b/javascript/qrcodegen.js index 3bd2c77..c20308a 100644 --- a/javascript/qrcodegen.js +++ b/javascript/qrcodegen.js @@ -142,16 +142,6 @@ var qrcodegen = new function() { return 0 <= x && x < size && 0 <= y && y < size && modules[y][x]; }; - // (Package-private) Tests whether the module at the given coordinates is a function module (true) or not (false). - // The top left corner has the coordinates (x=0, y=0). If the given coordinates are out of bounds, then false is returned. - // The JavaScript version of this library has this method because it is impossible to access private variables of another object. - this.isFunctionModule = function(x, y) { - if (0 <= x && x < size && 0 <= y && y < size) - return isFunction[y][x]; - else - return false; // Infinite border - }; - /*---- Public instance methods ----*/