File tree Expand file tree Collapse file tree 2 files changed +0
-25
lines changed
compiler/phases/2-analyze Expand file tree Collapse file tree 2 files changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -952,25 +952,6 @@ const runes_scope_tweaker = {
952
952
function is_known_safe_call ( node , context ) {
953
953
const callee = node . callee ;
954
954
955
- // Check for selector() API calls
956
- if ( callee . type === 'MemberExpression' && callee . object . type === 'Identifier' ) {
957
- const binding = context . state . scope . get ( callee . object . name ) ;
958
- const selector_binding = context . state . scope . get ( 'selector' ) ;
959
- if (
960
- selector_binding !== null &&
961
- selector_binding . declaration_kind === 'import' &&
962
- selector_binding . initial !== null &&
963
- selector_binding . initial . type === 'ImportDeclaration' &&
964
- selector_binding . initial . source . value === 'svelte' &&
965
- binding !== null &&
966
- binding . initial !== null &&
967
- binding . initial . type === 'CallExpression' &&
968
- binding . initial . callee . type === 'Identifier' &&
969
- binding . initial . callee . name === 'selector'
970
- ) {
971
- return true ;
972
- }
973
- }
974
955
// String / Number / BigInt / Boolean casting calls
975
956
if ( callee . type === 'Identifier' ) {
976
957
const name = callee . name ;
Original file line number Diff line number Diff line change @@ -640,12 +640,6 @@ export function create_anchor(payload) {
640
640
return `<!ssr:${ depth } >` ;
641
641
}
642
642
643
- /** @returns {[() => false, (value: boolean) => void] } */
644
- export function selector ( ) {
645
- // Add SSR stubs
646
- return [ ( ) => false , noop ] ;
647
- }
648
-
649
643
/**
650
644
* @param {number } timeout
651
645
* @returns {() => void }
You can’t perform that action at this time.
0 commit comments