utility.js: remove dead Utility.without function.

This commit is contained in:
evazion
2018-08-16 23:17:43 -05:00
parent 21895ef0aa
commit e9d6a0fda6

View File

@@ -71,16 +71,6 @@ Utility.intersect = function(a, b) {
return result;
}
Utility.without = function(array, element) {
var temp = [];
$.each(array, function(i, v) {
if (v !== element) {
temp.push(v);
}
});
return temp;
}
Utility.regexp_escape = function(string) {
return string.replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1");
}