/*global require, module */

var hash = require('object-hash'),
    HashTable = hash.HashTable;

// https://github.com/puleos/object-hash/pull/12
HashTable.prototype.remove = function (obj) {
  var key = hash(obj),
      count = this.getCount(key);
  if(count===1) {
    delete this._table[key];
  } else {
    this._table[key].count = count-1;
  }
};

module.exports = HashTable;

@@ -20,16 +20,174 @@
 odule */
+%0A/**%0A * HashTable from object-hash module,%0A *    patched to allow removing objects from the table.%0A *%0A * see https://github.com/puleos/object-hash/pull/12%0A */
 %0A%0Avar ha
@@ -252,57 +252,8 @@
 e;%0A%0A
-// https://github.com/puleos/object-hash/pull/12%0A
 Hash

add comment explaining hashtable patch