mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 01:05:48 +02:00
Remove unused code
This commit is contained in:
@@ -450,15 +450,6 @@ def go_code_for_remote_command(name: str, cmd: RemoteCommand, template: str) ->
|
|||||||
|
|
||||||
# kittens {{{
|
# kittens {{{
|
||||||
|
|
||||||
@lru_cache
|
|
||||||
def wrapped_kittens() -> tuple[str, ...]:
|
|
||||||
with open('shell-integration/ssh/kitty') as f:
|
|
||||||
for line in f:
|
|
||||||
if line.startswith(' wrapped_kittens="'):
|
|
||||||
val = line.strip().partition('"')[2][:-1]
|
|
||||||
return tuple(sorted(filter(None, val.split())))
|
|
||||||
raise Exception('Failed to read wrapped kittens from kitty wrapper script')
|
|
||||||
|
|
||||||
|
|
||||||
def generate_conf_parser(kitten: str, defn: Definition) -> None:
|
def generate_conf_parser(kitten: str, defn: Definition) -> None:
|
||||||
with replace_if_needed(f'kittens/{kitten}/conf_generated.go'):
|
with replace_if_needed(f'kittens/{kitten}/conf_generated.go'):
|
||||||
|
|||||||
Reference in New Issue
Block a user