Cleanup old code

This commit is contained in:
haad 2016-02-23 09:36:35 +02:00
parent 1000bde187
commit dadddc4ca2
2 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
'use strict';
const Encryption = require('orbit-common/lib/Encryption');
// const Encryption = require('orbit-common/lib/Encryption');
class OrbitDBItem {
constructor(operation, key, value, metaInfo) {
@ -11,6 +11,7 @@ class OrbitDBItem {
}
}
/*
class HashCacheItem {
constructor(operation, key, sequenceNumber, targetHash, metaInfo, next) {
this.op = operation;
@ -62,9 +63,9 @@ class EncryptedHashCacheItem extends HashCacheItem {
return item;
}
}
*/
module.exports = {
OrbitDBItem: OrbitDBItem,
HashCacheItem: HashCacheItem,
EncryptedHashCacheItem: EncryptedHashCacheItem
// HashCacheItem: HashCacheItem,
// EncryptedHashCacheItem: EncryptedHashCacheItem
};

View File

@ -34,9 +34,8 @@ class OrbitClient {
}));
return {
delete: () => this._deleteChannel(hash, password),
iterator: (options) => this._iterator(hash, password, options),
setMode: (mode) => this._setMode(hash, password, mode),
delete: () => this._deleteChannel(hash, password),
add: (data) => this._add(hash, password, data),
del: (key) => this._remove(hash, password, key),
put: (key, data) => this._put(hash, password, key, data),