mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-10-07 22:57:07 +00:00
Cleanup code
This commit is contained in:
@@ -13,10 +13,6 @@ class Node {
|
||||
return "" + this.id + "." + this.seq + "." + this.ver;
|
||||
}
|
||||
|
||||
compact() {
|
||||
return { id: this.id, seq: this.seq, ver: this.ver, data: this.data, next: this.next }
|
||||
}
|
||||
|
||||
toJson() {
|
||||
return { id: this.id, seq: this.seq, ver: this.ver, data: this.data, next: this.next }
|
||||
}
|
||||
|
||||
@@ -27,7 +27,6 @@ class OrbitList extends List {
|
||||
node._commit();
|
||||
this._currentBatch.push(node);
|
||||
this.ver ++;
|
||||
|
||||
}
|
||||
|
||||
join(other) {
|
||||
|
||||
@@ -14,10 +14,6 @@ class OrbitNode extends Node {
|
||||
this.hash = hash ? hash : this.ipfsHash;
|
||||
}
|
||||
|
||||
get compactId() {
|
||||
return "" + this.id + "." + this.seq + "." + this.ver;
|
||||
}
|
||||
|
||||
get ipfsHash() {
|
||||
this._commit();
|
||||
return this.hash;
|
||||
|
||||
Reference in New Issue
Block a user