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 @@ -630,12 +630,6 @@ export function ensure_array_like(array_like_or_iterator) {
630
630
: Array . from ( array_like_or_iterator ) ;
631
631
}
632
632
633
- /** @returns {[() => false, (value: boolean) => void] } */
634
- export function selector ( ) {
635
- // Add SSR stubs
636
- return [ ( ) => false , noop ] ;
637
- }
638
-
639
633
/**
640
634
* @param {number } timeout
641
635
* @returns {() => void }
You can’t perform that action at this time.
0 commit comments