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

View File

@ -34,9 +34,8 @@ class OrbitClient {
})); }));
return { return {
delete: () => this._deleteChannel(hash, password),
iterator: (options) => this._iterator(hash, password, options), 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), add: (data) => this._add(hash, password, data),
del: (key) => this._remove(hash, password, key), del: (key) => this._remove(hash, password, key),
put: (key, data) => this._put(hash, password, key, data), put: (key, data) => this._put(hash, password, key, data),