]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(compiler-sfc): remove unused variable (#12750)
authorTycho <jh.leong@outlook.com>
Tue, 21 Jan 2025 01:28:04 +0000 (09:28 +0800)
committerGitHub <noreply@github.com>
Tue, 21 Jan 2025 01:28:04 +0000 (09:28 +0800)
packages/compiler-sfc/src/compileScript.ts

index fee05beed96eed34fb48b2cb61e93b2d1c4ba6bf..962b7bc7936bae4d075204f698f688fdd2416246 100644 (file)
@@ -170,8 +170,6 @@ export function compileScript(
   const scriptLang = script && script.lang
   const scriptSetupLang = scriptSetup && scriptSetup.lang
 
-  let refBindings: string[] | undefined
-
   if (!scriptSetup) {
     if (!script) {
       throw new Error(`[@vue/compiler-sfc] SFC contains no <script> tags.`)
@@ -740,12 +738,6 @@ export function compileScript(
   for (const key in setupBindings) {
     ctx.bindingMetadata[key] = setupBindings[key]
   }
-  // known ref bindings
-  if (refBindings) {
-    for (const key of refBindings) {
-      ctx.bindingMetadata[key] = BindingTypes.SETUP_REF
-    }
-  }
 
   // 7. inject `useCssVars` calls
   if (