Skip to content

Commit 7363f87

Browse files
authored
chore: remove unused code (#11190)
leftover from earlier iterations of #11183
1 parent 1a341a2 commit 7363f87

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

packages/svelte/src/internal/client/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export {
137137
$window as window,
138138
$document as document
139139
} from './dom/operations.js';
140-
export { noop, call_once } from '../shared/utils.js';
140+
export { noop } from '../shared/utils.js';
141141
export {
142142
add_snippet_symbol,
143143
validate_component,

packages/svelte/src/internal/shared/utils.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,3 @@ export function run_all(arr) {
2323
arr[i]();
2424
}
2525
}
26-
27-
/**
28-
* @param {Function} fn
29-
*/
30-
export function call_once(fn) {
31-
let called = false;
32-
/** @type {unknown} */
33-
let result;
34-
return function () {
35-
if (!called) {
36-
called = true;
37-
result = fn();
38-
}
39-
return result;
40-
};
41-
}

0 commit comments

Comments
 (0)