Skip to content

Commit e6bf014

Browse files
x: remove unused x_get_prop_info and winprop_info
1 parent 54b07b6 commit e6bf014

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

src/x.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -290,25 +290,6 @@ winprop_t x_get_prop_with_offset(const struct x_connection *c, xcb_window_t w, x
290290
.ptr = NULL, .nitems = 0, .type = XCB_GET_PROPERTY_TYPE_ANY, .format = 0};
291291
}
292292

293-
/// Get the type, format and size in bytes of a window's specific attribute.
294-
winprop_info_t x_get_prop_info(const struct x_connection *c, xcb_window_t w, xcb_atom_t atom) {
295-
xcb_generic_error_t *e = NULL;
296-
auto r = xcb_get_property_reply(
297-
c->c, xcb_get_property(c->c, 0, w, atom, XCB_ATOM_ANY, 0, 0), &e);
298-
if (!r) {
299-
log_debug_x_error(e, "Failed to get property info for window %#010x", w);
300-
free(e);
301-
return (winprop_info_t){
302-
.type = XCB_GET_PROPERTY_TYPE_ANY, .format = 0, .length = 0};
303-
}
304-
305-
winprop_info_t winprop_info = {
306-
.type = r->type, .format = r->format, .length = r->bytes_after};
307-
free(r);
308-
309-
return winprop_info;
310-
}
311-
312293
/**
313294
* Get the value of a type-<code>xcb_window_t</code> property of a window.
314295
*

src/x.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ typedef struct winprop {
3939
xcb_get_property_reply_t *r;
4040
} winprop_t;
4141

42-
typedef struct winprop_info {
43-
xcb_atom_t type;
44-
uint8_t format;
45-
uint32_t length;
46-
} winprop_info_t;
47-
4842
enum x_error_action {
4943
PENDING_REPLY_ACTION_IGNORE,
5044
PENDING_REPLY_ACTION_ABORT,
@@ -240,9 +234,6 @@ x_get_prop(const struct x_connection *c, xcb_window_t wid, xcb_atom_t atom, int
240234
return x_get_prop_with_offset(c, wid, atom, 0L, length, rtype, rformat);
241235
}
242236

243-
/// Get the type, format and size in bytes of a window's specific attribute.
244-
winprop_info_t x_get_prop_info(const struct x_connection *c, xcb_window_t w, xcb_atom_t atom);
245-
246237
/**
247238
* Get the value of a type-<code>xcb_window_t</code> property of a window.
248239
*

0 commit comments

Comments
 (0)