remove unused hash method on string

This commit is contained in:
Albert Yi
2018-08-03 17:26:38 -07:00
parent ba74691bc7
commit d999bd124c
2 changed files with 0 additions and 10 deletions

View File

@@ -62,7 +62,6 @@ Blacklist.update_sidebar = function() {
var item = $("<li/>");
var link = $("<a/>");
var count = $("<span/>");
var hash = entry.tags.hash();
link.text(entry.tags);
link.click(Blacklist.toggle_entry);

View File

@@ -150,15 +150,6 @@ Utility.is_global_hook_defined = function(path) {
return typeof obj === 'function';
}
String.prototype.hash = function() {
var hash = 5381, i = this.length;
while(i)
hash = (hash * 33) ^ this.charCodeAt(--i)
return hash >>> 0;
}
$.fn.selectRange = function(start, end) {
return this.each(function() {
if (this.setSelectionRange) {