summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@herrb.eu>2021-08-03 08:37:00 +0200
committerMatthieu Herrb <matthieu@herrb.eu>2021-08-03 08:37:00 +0200
commit01080057a35b54abce715884ae9fa1938b78d497 (patch)
treec531544b688e7bc1af8ff5c3a8d7cd15f6268526
parentb27891d9d6de2b459e81421a0cd93268f2af35b1 (diff)
Remove unused function window_get_pid()
Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
-rw-r--r--xrestop.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/xrestop.c b/xrestop.c
index cb28d99..f1d262c 100644
--- a/xrestop.c
+++ b/xrestop.c
@@ -160,31 +160,6 @@ untrap_errors(void)
/* Misc util funcs */
-static pid_t
-window_get_pid(XResTopApp *app, Window win)
-{
- Atom type;
- unsigned long bytes_after, n_items;
- long *data = NULL;
- pid_t result = -1;
- int format;
-
- if (XGetWindowProperty (app->dpy, win,
- app->atoms[ATOM_NET_WM_PID],
- 0, 2L,
- False, XA_CARDINAL,
- &type, &format, &n_items,
- &bytes_after, (unsigned char **)&data) == Success
- && n_items && data != NULL)
- {
- result = *data;
- }
-
- XFree(data);
-
- return result;
-}
-
static char*
window_get_utf8_name(XResTopApp *app, Window win)
{