mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-05-19 21:36:37 +00:00
Cleanup old code
This commit is contained in:
parent
1000bde187
commit
dadddc4ca2
@ -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
|
||||
};
|
||||
|
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user