aboutsummaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authordenis <denismaximov98@gmail.com>2021-03-18 15:28:00 +0200
committerKunal Mohan <kunalmohan99@gmail.com>2021-05-04 20:47:50 +0530
commit70d8be07417c023b27400b0f8c6c4ce736cf8cd2 (patch)
treedbabd32e361e7bcfb83837e21277afc8bf089b46 /src/server
parentwip: here goes the os_thread and OsContext (diff)
downloadsl0ppij-70d8be07417c023b27400b0f8c6c4ce736cf8cd2.tar.gz
sl0ppij-70d8be07417c023b27400b0f8c6c4ce736cf8cd2.tar.xz
sl0ppij-70d8be07417c023b27400b0f8c6c4ce736cf8cd2.zip
wip: remove the commands that are called only on the client
Diffstat (limited to 'src/server')
-rw-r--r--src/server/mod.rs28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/server/mod.rs b/src/server/mod.rs
index 3ca9e004..c1713918 100644
--- a/src/server/mod.rs
+++ b/src/server/mod.rs
@@ -131,25 +131,9 @@ pub fn start_server(os_input: Box<dyn OsApi>, opts: CliArgs) -> (thread::JoinHan
.expect("failed to receive an event on the channel");
err_ctx.add_call(ContextType::Os(OsContext::from(&event)));
match event {
- OsApiInstruction::SpawnTerminal(file_to_open) => {
- os_input.spawn_terminal(file_to_open);
- }
- OsApiInstruction::GetTerminalSizeUsingFd(fd) => {
- os_input.get_terminal_size_using_fd(fd);
- }
OsApiInstruction::SetTerminalSizeUsingFd(fd, cols, rows) => {
os_input.set_terminal_size_using_fd(fd, cols, rows);
}
- OsApiInstruction::SetRawMode(fd) => {
- os_input.set_raw_mode(fd);
- }
- OsApiInstruction::UnsetRawMode(fd) => {
- os_input.unset_raw_mode(fd);
- }
- OsApiInstruction::ReadFromTtyStdout(fd, mut buf) => {
- let slice = buf.as_mut_slice();
- os_input.read_from_tty_stdout(fd, slice).unwrap();
- }
OsApiInstruction::WriteToTtyStdin(fd, mut buf) => {
let slice = buf.as_mut_slice();
os_input.write_to_tty_stdin(fd, slice).unwrap();
@@ -157,18 +141,6 @@ pub fn start_server(os_input: Box<dyn OsApi>, opts: CliArgs) -> (thread::JoinHan
OsApiInstruction::TcDrain(fd) => {
os_input.tcdrain(fd).unwrap();
}
- OsApiInstruction::Kill(pid) => {
- os_input.kill(pid).unwrap();
- }
- OsApiInstruction::ReadFromStdin => {
- os_input.read_from_stdin();
- }
- OsApiInstruction::GetStdoutWriter => {
- os_input.get_stdout_writer();
- }
- OsApiInstruction::BoxClone => {
- os_input.box_clone();
- }
}
}
})