Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove dead rpc code for change directory #1164

Merged
merged 1 commit into from
Apr 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions cryptol-remote-api/python/cryptol/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,6 @@ def from_cryptol_arg(val : Any) -> Any:
raise TypeError("Unsupported value " + str(val))



class CryptolChangeDirectory(argo.Command):
def __init__(self, connection : HasProtocolState, new_directory : str) -> None:
super(CryptolChangeDirectory, self).__init__(
'change directory',
{'directory': new_directory},
connection
)

def process_result(self, res : Any) -> Any:
return res

class CryptolLoadModule(argo.Command):
def __init__(self, connection : HasProtocolState, mod_name : str) -> None:
super(CryptolLoadModule, self).__init__('load module', {'module name': mod_name}, connection)
Expand Down Expand Up @@ -376,11 +364,6 @@ def protocol_state(self) -> Any:
return self.most_recent_result.state()

# Protocol messages
def change_directory(self, new_directory : str) -> argo.Command:
"""Change the working directory of the Cryptol process."""
self.most_recent_result = CryptolChangeDirectory(self, new_directory)
return self.most_recent_result

def load_file(self, filename : str) -> argo.Command:
"""Load a filename as a Cryptol module, like ``:load`` at the Cryptol
REPL.
Expand Down