Skip to content

Commit 20bc81b

Browse files
committed
Remove dead method
1 parent dfb19ba commit 20bc81b

File tree

1 file changed

+0
-14
lines changed
  • packages/toolkit/src/query/core/buildMiddleware

1 file changed

+0
-14
lines changed

packages/toolkit/src/query/core/buildMiddleware/polling.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,6 @@ export const buildPollingHandler: InternalHandlerBuilder = ({
7575
}
7676
}
7777

78-
function getCacheEntrySubscriptions(
79-
queryCacheKey: QueryCacheKey,
80-
api: SubMiddlewareApi,
81-
) {
82-
const state = api.getState()[reducerPath]
83-
const querySubState = state.queries[queryCacheKey]
84-
const subscriptions = currentSubscriptions.get(queryCacheKey)
85-
86-
if (!querySubState || querySubState.status === QueryStatus.uninitialized)
87-
return
88-
89-
return subscriptions
90-
}
91-
9278
function startNextPoll(
9379
{ queryCacheKey }: QuerySubstateIdentifier,
9480
api: SubMiddlewareApi,

0 commit comments

Comments
 (0)