Skip to content

Commit fef799c

Browse files
Remove syntax2scope and view2scope because they are not used
1 parent ecf23ee commit fef799c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

plugin/core/types.py

-12
Original file line numberDiff line numberDiff line change
@@ -912,18 +912,6 @@ def __eq__(self, other: Any) -> bool:
912912
return True
913913

914914

915-
def syntax2scope(syntax_path: str) -> str | None:
916-
syntax = sublime.syntax_from_path(syntax_path)
917-
return syntax.scope if syntax else None
918-
919-
920-
def view2scope(view: sublime.View) -> str:
921-
try:
922-
return view.scope_name(0).split()[0]
923-
except IndexError:
924-
return ''
925-
926-
927915
def _read_selector(config: sublime.Settings | dict[str, Any]) -> str:
928916
# Best base scenario,
929917
selector = config.get("selector")

0 commit comments

Comments
 (0)