Skip to content

Commit 67ecd9f

Browse files
realitykingmichaelficarra
authored andcommitted
Remove unused functions (#94)
1 parent ef2fd31 commit 67ecd9f

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

estraverse.js

-33
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
SKIP,
3636
REMOVE;
3737

38-
function ignoreJSHintError() { }
39-
4038
function deepCopy(obj) {
4139
var ret = {}, key, val;
4240
for (key in obj) {
@@ -52,17 +50,6 @@
5250
return ret;
5351
}
5452

55-
function shallowCopy(obj) {
56-
var ret = {}, key;
57-
for (key in obj) {
58-
if (obj.hasOwnProperty(key)) {
59-
ret[key] = obj[key];
60-
}
61-
}
62-
return ret;
63-
}
64-
ignoreJSHintError(shallowCopy);
65-
6653
// based on LLVM libc++ upper_bound / lower_bound
6754
// MIT License
6855

@@ -85,26 +72,6 @@
8572
return i;
8673
}
8774

88-
function lowerBound(array, func) {
89-
var diff, len, i, current;
90-
91-
len = array.length;
92-
i = 0;
93-
94-
while (len) {
95-
diff = len >>> 1;
96-
current = i + diff;
97-
if (func(array[current])) {
98-
i = current + 1;
99-
len -= diff + 1;
100-
} else {
101-
len = diff;
102-
}
103-
}
104-
return i;
105-
}
106-
ignoreJSHintError(lowerBound);
107-
10875
Syntax = {
10976
AssignmentExpression: 'AssignmentExpression',
11077
AssignmentPattern: 'AssignmentPattern',

0 commit comments

Comments
 (0)