Skip to content

Commit b6bd813

Browse files
committed
Not throw error for no longer valid polygon.tester argument [1852]
- Reason: it's pretty sure it'll no longer be called. - See #2944 (comment)
1 parent 32aa219 commit b6bd813

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/lib/polygon.js

-6
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ var polygon = module.exports = {};
3131
* returns boolean: is pt inside the polygon (including on its edges)
3232
*/
3333
polygon.tester = function tester(ptsIn) {
34-
35-
// Throw an error if any code tries to pass this no
36-
// longer supported argument shape. The local multitester became
37-
// obsolete when introducing click-to-select in PR #2944.
38-
if(Array.isArray(ptsIn[0][0])) throw new Error('multitester called!');
39-
4034
var pts = ptsIn.slice(),
4135
xmin = pts[0][0],
4236
xmax = xmin,

0 commit comments

Comments
 (0)