From 776bf3aaf0df3c1c09f20f54f9912e923814dffb Mon Sep 17 00:00:00 2001 From: Skia Date: Fri, 15 Jan 2021 01:12:26 +0100 Subject: [PATCH] Remove unused 'get_current_workspace_name' --- src/main.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/main.rs b/src/main.rs index 395bf9b..16ea97a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -175,17 +175,6 @@ fn get_current_output_name(stream: &UnixStream) -> String { format!("{}", focused_output_index) } -fn get_current_workspace_name(stream: &UnixStream) -> String { - let workspaces = get_workspaces(&stream); - - let focused_workspace_index = match workspaces.iter().position(|x| x.focused) { - Some(i) => i, - None => panic!("WTF! No focused workspace???"), - }; - - workspaces[focused_workspace_index].name.clone() -} - fn move_container_to_workspace(stream: &UnixStream, workspace_name: &String) { let mut cmd: String = "move container to workspace ".to_string(); let output = get_current_output_name(stream);