Skip to content

Commit 2921685

Browse files
authored
chore(compiler-sfc): remove unused variable (vuejs#12750)
1 parent 0f12fb7 commit 2921685

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/compiler-sfc/src/compileScript.ts

-8
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ export function compileScript(
170170
const scriptLang = script && script.lang
171171
const scriptSetupLang = scriptSetup && scriptSetup.lang
172172

173-
let refBindings: string[] | undefined
174-
175173
if (!scriptSetup) {
176174
if (!script) {
177175
throw new Error(`[@vue/compiler-sfc] SFC contains no <script> tags.`)
@@ -740,12 +738,6 @@ export function compileScript(
740738
for (const key in setupBindings) {
741739
ctx.bindingMetadata[key] = setupBindings[key]
742740
}
743-
// known ref bindings
744-
if (refBindings) {
745-
for (const key of refBindings) {
746-
ctx.bindingMetadata[key] = BindingTypes.SETUP_REF
747-
}
748-
}
749741

750742
// 7. inject `useCssVars` calls
751743
if (

0 commit comments

Comments
 (0)