Deleted unused method in JavaScript code (related to commit b86466ecd5).

This commit is contained in:
Project Nayuki 2018-06-23 16:18:34 +00:00
parent 88ff414a24
commit 1a5207ece3
1 changed files with 0 additions and 10 deletions

View File

@ -142,16 +142,6 @@ var qrcodegen = new function() {
return 0 <= x && x < size && 0 <= y && y < size && modules[y][x]; 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 ----*/ /*---- Public instance methods ----*/