@@ -13,13 +13,16 @@ import {
13
13
} from '@glimmer/interfaces' ;
14
14
import { Owner } from '@glimmer/di' ;
15
15
import { expect } from '@glimmer/util' ;
16
- import { TemplateFactory , templateFactory } from '@glimmer/opcode-compiler' ;
17
- import { PrecompileOptions , precompile } from '@glimmer/compiler' ;
16
+ import { templateFactory } from '@glimmer/opcode-compiler' ;
18
17
19
18
import { TypedRegistry } from './typed-registry' ;
20
19
import { HelperReference } from '../../helpers/user-helper' ;
21
20
import { getManager } from '../../components/utils' ;
22
- import { CustomComponentDefinition , ManagerDelegate , ComponentFactory } from '../../components/component-managers/custom' ;
21
+ import {
22
+ CustomComponentDefinition ,
23
+ ManagerDelegate ,
24
+ ComponentFactory ,
25
+ } from '../../components/component-managers/custom' ;
23
26
import { TemplateOnlyComponentDefinition } from '../../components/component-managers/template-only' ;
24
27
25
28
export type UserHelper = ( args : ReadonlyArray < unknown > , named : Dict < unknown > ) => unknown ;
@@ -243,13 +246,3 @@ export function createJitComponentDefinition(
243
246
template
244
247
) ;
245
248
}
246
-
247
- export function createTemplate < Locator > (
248
- templateSource : string ,
249
- options ?: PrecompileOptions
250
- ) : TemplateFactory < Locator > {
251
- let wrapper : SerializedTemplateWithLazyBlock < Locator > = JSON . parse (
252
- precompile ( templateSource , options )
253
- ) ;
254
- return templateFactory < Locator > ( wrapper ) ;
255
- }
0 commit comments