From 9b295fbb57662e4f8e77d4c3a661eb19df1a7024 Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Thu, 16 Apr 2020 21:22:28 +0200 Subject: [PATCH] Remove dead declarations in header files --- include/handlers.h | 19 ------------------- include/workspace.h | 45 --------------------------------------------- 2 files changed, 64 deletions(-) diff --git a/include/handlers.h b/include/handlers.h index d2c79c591..81012e7be 100644 --- a/include/handlers.h +++ b/include/handlers.h @@ -47,22 +47,3 @@ void handle_event(int type, xcb_generic_event_t *event); * */ void property_handlers_init(void); - -#if 0 -/** - * Configuration notifies are only handled because we need to set up ignore - * for the following enter notify events - * - */ -int handle_configure_event(void *prophs, xcb_connection_t *conn, xcb_configure_notify_event_t *event); -#endif - -#if 0 -/** - * Handles _NET_WM_WINDOW_TYPE changes - * - */ -int handle_window_type(void *data, xcb_connection_t *conn, uint8_t state, - xcb_window_t window, xcb_atom_t atom, - xcb_get_property_reply_t *property); -#endif diff --git a/include/workspace.h b/include/workspace.h index 69974a2e1..8ef20215f 100644 --- a/include/workspace.h +++ b/include/workspace.h @@ -136,51 +136,6 @@ void workspace_back_and_forth(void); */ Con *workspace_back_and_forth_get(void); -#if 0 -/** - * Assigns the given workspace to the given screen by correctly updating its - * state and reconfiguring all the clients on this workspace. - * - * This is called when initializing a screen and when re-assigning it to a - * different screen which just got available (if you configured it to be on - * screen 1 and you just plugged in screen 1). - * - */ -void workspace_assign_to(Workspace *ws, Output *screen, bool hide_it); - -/** - * Initializes the given workspace if it is not already initialized. The given - * screen is to be understood as a fallback, if the workspace itself either - * was not assigned to a particular screen or cannot be placed there because - * the screen is not attached at the moment. - * - */ -void workspace_initialize(Workspace *ws, Output *screen, bool recheck); - -/** - * Gets the first unused workspace for the given screen, taking into account - * the preferred_screen setting of every workspace (workspace assignments). - * - */ -Workspace *get_first_workspace_for_output(Output *screen); - -/** - * Unmaps all clients (and stack windows) of the given workspace. - * - * This needs to be called separately when temporarily rendering a workspace - * which is not the active workspace to force reconfiguration of all clients, - * like in src/xinerama.c when re-assigning a workspace to another screen. - * - */ -void workspace_unmap_clients(xcb_connection_t *conn, Workspace *u_ws); - -/** - * Maps all clients (and stack windows) of the given workspace. - * - */ -void workspace_map_clients(xcb_connection_t *conn, Workspace *ws); -#endif - /** * Goes through all clients on the given workspace and updates the workspace’s * urgent flag accordingly.