Skip to content

Commit

Permalink
chore: fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
v0l committed Mar 30, 2023
1 parent d43b55c commit 625d3c3
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions packages/app/src/System/NoteCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const EmptySnapshot = {
// empty
},
loading: () => true,
add: (ev: Readonly<TaggedRawEvent> | Readonly<Array<TaggedRawEvent>>) => {
add: () => {
// empty
},
} as StoreSnapshot<FlatNoteStore>;
Expand Down Expand Up @@ -121,29 +121,6 @@ export abstract class HookedNoteStore<TSnapshot extends NoteStoreSnapshotData> i
}
}

export type Node = Map<u256, Array<NodeBranch>>;
export type NodeBranch = TaggedRawEvent | Node;

/**
* Tree note store
*/
export class NostrEventTree extends HookedNoteStore<TaggedRawEvent> {
base: Node = new Map();
#nodeIndex: Map<u256, Node> = new Map();

add(ev: TaggedRawEvent | Array<TaggedRawEvent>) {
throw new Error("Not implemented");
}

clear(): void {
throw new Error("Method not implemented.");
}

takeSnapshot(): TaggedRawEvent {
throw new Error("Method not implemented.");
}
}

/**
* A simple flat container of events with no duplicates
*/
Expand Down

0 comments on commit 625d3c3

Please sign in to comment.