Skip to content

Commit 712e52b

Browse files
committedFeb 25, 2025
remove dead code
1 parent 79e18e1 commit 712e52b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed
 

‎packages/base/code-ref.gts

-12
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { restartableTask } from 'ember-concurrency';
1919
import { consume } from 'ember-provide-consume-context';
2020
import {
2121
type ResolvedCodeRef,
22-
type Loader,
2322
CardURLContextName,
2423
} from '@cardstack/runtime-common';
2524
import { not } from '@cardstack/boxel-ui/helpers';
@@ -167,14 +166,3 @@ function maybeSerializeCodeRef(
167166
}
168167
return undefined;
169168
}
170-
171-
function myLoader(): Loader {
172-
// we know this code is always loaded by an instance of our Loader, which sets
173-
// import.meta.loader.
174-
175-
// When type-checking realm-server, tsc sees this file and thinks
176-
// it will be transpiled to CommonJS and so it complains about this line. But
177-
// this file is always loaded through our loader and always has access to import.meta.
178-
// @ts-ignore
179-
return (import.meta as any).loader;
180-
}

0 commit comments

Comments
 (0)
Failed to load comments.