about summary refs log tree commit diff
path: root/src/state/queries/post-feed.ts
diff options
context:
space:
mode:
authorJan-Olof Eriksson <jan-olof.eriksson@iki.fi>2024-02-21 13:22:13 +0200
committerGitHub <noreply@github.com>2024-02-21 13:22:13 +0200
commit38fd4282f88ac020ee72d5a6324191ee80798450 (patch)
tree18f713fed78387f1cb83ac0818b4f1333fad6db8 /src/state/queries/post-feed.ts
parent1269e76071ea7c79b93d1a58e80b74746c71ecd9 (diff)
parentf88b16525498584f81ea7f594a63623fc5dc7ce9 (diff)
downloadvoidsky-38fd4282f88ac020ee72d5a6324191ee80798450.tar.zst
Merge branch 'bluesky-social:main' into main
Diffstat (limited to 'src/state/queries/post-feed.ts')
-rw-r--r--src/state/queries/post-feed.ts17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/state/queries/post-feed.ts b/src/state/queries/post-feed.ts
index 320009089..40399395a 100644
--- a/src/state/queries/post-feed.ts
+++ b/src/state/queries/post-feed.ts
@@ -365,23 +365,6 @@ function createApi(
   }
 }
 
-/**
- * This helper is used by the post-thread placeholder function to
- * find a post in the query-data cache
- */
-export function findPostInQueryData(
-  queryClient: QueryClient,
-  uri: string,
-): AppBskyFeedDefs.PostView | undefined {
-  const generator = findAllPostsInQueryData(queryClient, uri)
-  const result = generator.next()
-  if (result.done) {
-    return undefined
-  } else {
-    return result.value
-  }
-}
-
 export function* findAllPostsInQueryData(
   queryClient: QueryClient,
   uri: string,