summaryrefslogtreecommitdiffstats
path: root/zellij-client/src
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2021-07-04 15:20:47 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2021-07-06 21:32:43 +0530
commit82288c6a3d4a1347016fd7a5bd83fdbcbe9fcc1d (patch)
treeee6bdf3b0894662b1816097f6fee173b4eac1af2 /zellij-client/src
parent79c30e9d59e69959317ab046c57b8a81f57af1ac (diff)
Remove test feature and hacks
Diffstat (limited to 'zellij-client/src')
-rw-r--r--zellij-client/src/lib.rs12
1 files changed, 0 insertions, 12 deletions
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();