chore: remove unused code (#11190)

leftover from earlier iterations of #11183
pull/11193/head
Simon H 4 months ago committed by GitHub
parent 1a341a25f0
commit 7363f873df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -137,7 +137,7 @@ export {
$window as window,
$document as document
} from './dom/operations.js';
export { noop, call_once } from '../shared/utils.js';
export { noop } from '../shared/utils.js';
export {
add_snippet_symbol,
validate_component,

@ -23,19 +23,3 @@ export function run_all(arr) {
arr[i]();
}
}
/**
* @param {Function} fn
*/
export function call_once(fn) {
let called = false;
/** @type {unknown} */
let result;
return function () {
if (!called) {
called = true;
result = fn();
}
return result;
};
}

Loading…
Cancel
Save