From 52845a52bb6a4c8d240e91add166e412a789a31d Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sun, 12 Jan 2025 17:41:29 -0800 Subject: [PATCH] nostrdb: remove ndb_writer_queue_note (dead code) This doesn't seem to be used at all Signed-off-by: William Casarin --- nostrdb/src/nostrdb.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/nostrdb/src/nostrdb.c b/nostrdb/src/nostrdb.c index bb64317b..026547a2 100644 --- a/nostrdb/src/nostrdb.c +++ b/nostrdb/src/nostrdb.c @@ -1930,18 +1930,6 @@ int ndb_note_verify(void *ctx, unsigned char pubkey[32], unsigned char id[32], return 1; } -static int ndb_writer_queue_note(struct ndb_writer *writer, - struct ndb_note *note, size_t note_len) -{ - struct ndb_writer_msg msg; - msg.type = NDB_WRITER_NOTE; - - msg.note.note = note; - msg.note.note_len = note_len; - - return prot_queue_push(&writer->inbox, &msg); -} - static void ndb_writer_last_profile_fetch(struct ndb_txn *txn, const unsigned char *pubkey, uint64_t fetched_at)