From 625d3c3d5b9ef4737b863bd523b929e65a7c6244 Mon Sep 17 00:00:00 2001 From: Kieran Date: Thu, 30 Mar 2023 14:32:27 +0100 Subject: [PATCH] chore: fix warnings --- packages/app/src/System/NoteCollection.ts | 25 +---------------------- 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/packages/app/src/System/NoteCollection.ts b/packages/app/src/System/NoteCollection.ts index 65a1d1c..4799907 100644 --- a/packages/app/src/System/NoteCollection.ts +++ b/packages/app/src/System/NoteCollection.ts @@ -14,7 +14,7 @@ export const EmptySnapshot = { // empty }, loading: () => true, - add: (ev: Readonly | Readonly>) => { + add: () => { // empty }, } as StoreSnapshot; @@ -121,29 +121,6 @@ export abstract class HookedNoteStore i } } -export type Node = Map>; -export type NodeBranch = TaggedRawEvent | Node; - -/** - * Tree note store - */ -export class NostrEventTree extends HookedNoteStore { - base: Node = new Map(); - #nodeIndex: Map = new Map(); - - add(ev: TaggedRawEvent | Array) { - 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 */