Deleted unused method in JavaScript code (related to commit b86466ecd5
).
This commit is contained in:
parent
88ff414a24
commit
1a5207ece3
|
@ -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 ----*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue