From c8bec9b4b7c38f8ae0c830e311e7a7fe442babed Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 11 Aug 2024 19:07:27 -0500 Subject: [PATCH] Delete unused getUnattachedMedia function --- src/db/unattached-media.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/db/unattached-media.ts b/src/db/unattached-media.ts index 21949570..fac7a1d9 100644 --- a/src/db/unattached-media.ts +++ b/src/db/unattached-media.ts @@ -34,14 +34,6 @@ function selectUnattachedMediaQuery(kysely: Kysely) { ]); } -/** Find attachments that exist but aren't attached to any events. */ -function getUnattachedMedia(kysely: Kysely, until: Date) { - return selectUnattachedMediaQuery(kysely) - .leftJoin('nostr_tags', 'unattached_media.url', 'nostr_tags.value') - .where('uploaded_at', '<', until.getTime()) - .execute(); -} - /** Delete unattached media by URL. */ async function deleteUnattachedMediaByUrl(url: string) { const { kysely } = await DittoDB.getInstance(); @@ -77,7 +69,6 @@ async function deleteAttachedMedia(pubkey: string, urls: string[]): Promise