Skip to content

Commit

Permalink
Remove mmh3 for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Muldowney committed Jun 27, 2012
1 parent 55aa9c9 commit d0cc978
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 7 additions & 4 deletions idr.js
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
var url = require("url"); var url = require("url");
var crypto = require("crypto"); var crypto = require("crypto");
var mmh = require("murmurhash3"); //var mmh = require("murmurhash3");


// make sure it's parsed and clean up url-ish bits of the data we don't want // make sure it's parsed and clean up url-ish bits of the data we don't want
exports.parse = function(idrStr) { exports.parse = function(idrStr) {
Expand Down Expand Up @@ -69,15 +69,18 @@ exports.clone = function(idr) {
} }


exports.hash = function(idr) { exports.hash = function(idr) {
return mmh.murmur128HexSync(exports.toString(exports.parse(idr))); return undefined;//mmh.murmur128HexSync(exports.toString(exports.parse(idr)));
} }


exports.baseHash = function(idr) { exports.baseHash = function(idr) {
return mmh.murmur128HexSync(exports.toString(exports.base(exports.parse(idr)))); return undefined;//mmh.murmur128HexSync(exports.toString(exports.base(exports.parse(idr))));
} }


exports.id = function(idr) { exports.id = function(idr) {
/*
var idh = exports.hash(idr); var idh = exports.hash(idr);
var idb = mmh.murmur128HexSync(exports.pid(idr)); var idb = mmh.murmur128HexSync(exports.pid(idr));
return idh + '_' + idb.substr(0,9); return idh + '_' + idb.substr(0,9);
} */
return undefined;
}
1 change: 0 additions & 1 deletion package.json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"express": "<3.0", "express": "<3.0",
"querystring": "*", "querystring": "*",
"request": "*", "request": "*",
"murmurhash3": "*",
"sprintf": "*", "sprintf": "*",
"node-native-zip": "*" "node-native-zip": "*"
}, },
Expand Down

0 comments on commit d0cc978

Please sign in to comment.