Skip to content

Commit 317f02c

Browse files
committed
remove setCachedImplmentation, not used in tests anymore
1 parent c87bc87 commit 317f02c

File tree

2 files changed

+3
-23
lines changed

2 files changed

+3
-23
lines changed

packages/browser-utils/src/getNativeImplementation.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,6 @@ export function clearCachedImplementation(name: keyof CacheableImplementations):
6666
delete cachedImplementations[name];
6767
}
6868

69-
/**
70-
* Sets a cached implementation.
71-
* This should NOT be used, and is only here
72-
* @hidden
73-
*/
74-
export function setCachedImplementation<T extends keyof CacheableImplementations>(
75-
name: T,
76-
impl: CacheableImplementations[T],
77-
): void {
78-
cachedImplementations[name] = impl;
79-
}
80-
8169
/**
8270
* A special usecase for incorrectly wrapped Fetch APIs in conjunction with ad-blockers.
8371
* Whenever someone wraps the Fetch API and returns the wrong promise chain,

packages/browser-utils/src/index.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,7 @@ export { addClickKeypressInstrumentationHandler } from './instrument/dom';
1818

1919
export { addHistoryInstrumentationHandler } from './instrument/history';
2020

21-
export {
22-
fetch,
23-
setTimeout,
24-
clearCachedImplementation,
25-
getNativeImplementation,
26-
setCachedImplementation,
27-
} from './getNativeImplementation';
21+
export { fetch, setTimeout, clearCachedImplementation, getNativeImplementation } from './getNativeImplementation';
22+
23+
export { addXhrInstrumentationHandler, SENTRY_XHR_DATA_KEY } from './instrument/xhr';
2824

29-
export {
30-
addXhrInstrumentationHandler,
31-
SENTRY_XHR_DATA_KEY,
32-
} from './instrument/xhr';

0 commit comments

Comments
 (0)