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';
|
'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
|
||||||
};
|
};
|
||||||
|
@ -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),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user