diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-07-04 15:20:47 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-07-06 21:32:43 +0530 |
commit | 82288c6a3d4a1347016fd7a5bd83fdbcbe9fcc1d (patch) | |
tree | ee6bdf3b0894662b1816097f6fee173b4eac1af2 /zellij-client | |
parent | 79c30e9d59e69959317ab046c57b8a81f57af1ac (diff) |
Remove test feature and hacks
Diffstat (limited to 'zellij-client')
-rw-r--r-- | zellij-client/Cargo.toml | 2 | ||||
-rw-r--r-- | zellij-client/src/lib.rs | 12 |
2 files changed, 0 insertions, 14 deletions
diff --git a/zellij-client/Cargo.toml b/zellij-client/Cargo.toml index 5eff3b817..5a2e314a3 100644 --- a/zellij-client/Cargo.toml +++ b/zellij-client/Cargo.toml @@ -16,5 +16,3 @@ zellij-utils = { path = "../zellij-utils/", version = "0.15.0" } [dev-dependencies] insta = "1.6.0" -[features] -test = ["zellij-utils/test"] diff --git a/zellij-client/src/lib.rs b/zellij-client/src/lib.rs index f3e42a741..90732024d 100644 --- a/zellij-client/src/lib.rs +++ b/zellij-client/src/lib.rs @@ -118,7 +118,6 @@ pub fn start_client( palette, }; - #[cfg(not(any(feature = "test", test)))] let first_msg = match info { ClientInfo::Attach(name, force, config_options) => { SESSION_NAME.set(name).unwrap(); @@ -140,16 +139,6 @@ pub fn start_client( ) } }; - #[cfg(any(feature = "test", test))] - let first_msg = { - let _ = SESSION_NAME.set("".into()); - ClientToServerMsg::NewClient( - client_attributes, - Box::new(opts), - Box::new(config_options.clone()), - layout, - ) - }; os_input.connect_to_server(&*ZELLIJ_IPC_PIPE); os_input.send_to_server(first_msg); @@ -167,7 +156,6 @@ pub fn start_client( > = channels::bounded(50); let send_client_instructions = SenderWithContext::new(send_client_instructions); - #[cfg(not(any(feature = "test", test)))] std::panic::set_hook({ use zellij_utils::errors::handle_panic; let send_client_instructions = send_client_instructions.clone(); |