Skip to content

Commit 2bee4cb

Browse files
committed
less
1 parent d4b6623 commit 2bee4cb

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

packages/svelte/src/compiler/phases/3-transform/server/transform-server.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -44,28 +44,6 @@ import { SvelteHead } from './visitors/template/SvelteHead.js';
4444
import { SvelteSelf } from './visitors/template/SvelteSelf.js';
4545
import { TitleElement } from './visitors/template/TitleElement.js';
4646

47-
/**
48-
* @param {VariableDeclarator} declarator
49-
* @param {Scope} scope
50-
* @param {Expression} value
51-
* @returns {VariableDeclarator[]}
52-
*/
53-
function create_state_declarators(declarator, scope, value) {
54-
if (declarator.id.type === 'Identifier') {
55-
return [b.declarator(declarator.id, value)];
56-
}
57-
58-
const tmp = scope.generate('tmp');
59-
const paths = extract_paths(declarator.id);
60-
return [
61-
b.declarator(b.id(tmp), value), // TODO inject declarator for opts, so we can use it below
62-
...paths.map((path) => {
63-
const value = path.expression?.(b.id(tmp));
64-
return b.declarator(path.node, value);
65-
})
66-
];
67-
}
68-
6947
/** @type {Visitors} */
7048
const global_visitors = {
7149
AssignmentExpression,

0 commit comments

Comments
 (0)