From 6f7c05c10766be1e331a5668ef534f5e85cecace Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Wed, 10 Jul 2024 23:09:28 +0200 Subject: Cleanup --- src/window.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/window.c') diff --git a/src/window.c b/src/window.c index 55ebfe2..813fb4b 100644 --- a/src/window.c +++ b/src/window.c @@ -18,18 +18,6 @@ #include "any_log.h" #include "window.h" -static xcb_atom_t intern_atom(window_t *window, const char *atom) -{ - xcb_generic_error_t *error; - xcb_intern_atom_cookie_t cookie = xcb_intern_atom(window->display->connection, false, strlen(atom), atom); - xcb_intern_atom_reply_t *reply = xcb_intern_atom_reply(window->display->connection, cookie, &error); - - assert(error == NULL); - xcb_atom_t id = reply->atom; - free(reply); - return id; -} - static void wm_set_size(window_t *window) { xcb_size_hints_t hints = { 0 }; -- cgit v1.2.3