summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2022-12-06 00:07:37 +0100
committerCarlos Garnacho <carlosg@gnome.org>2022-12-09 16:28:33 +0000
commit5cfc626bfbe1737b715b6edc2d398be3731d73d5 (patch)
tree0f7611018818af484f658b52a801c192f658b9f2
parent66b1f439675855e3320b3a24a30bdc2de8c492d5 (diff)
downloadmutter-5cfc626bfbe1737b715b6edc2d398be3731d73d5.tar.gz
x11: Drop unused function
The meta_prop_get_motif_hints() function was only used in the old MetaUI frames code. The remaining code in mutter accesses directly the MetaPropValue when loading properties for a window, and does not use this API call. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2741>
-rw-r--r--src/x11/xprops.c17
-rw-r--r--src/x11/xprops.h4
2 files changed, 0 insertions, 21 deletions
diff --git a/src/x11/xprops.c b/src/x11/xprops.c
index 49a65b674..63cf767b4 100644
--- a/src/x11/xprops.c
+++ b/src/x11/xprops.c
@@ -318,23 +318,6 @@ motif_hints_from_results (GetPropertyResults *results,
return TRUE;
}
-gboolean
-meta_prop_get_motif_hints (MetaX11Display *x11_display,
- Window xwindow,
- Atom xatom,
- MotifWmHints **hints_p)
-{
- GetPropertyResults results;
-
- *hints_p = NULL;
-
- if (!get_property (x11_display, xwindow, xatom, AnyPropertyType,
- &results))
- return FALSE;
-
- return motif_hints_from_results (&results, hints_p);
-}
-
static gboolean
latin1_string_from_results (GetPropertyResults *results,
char **str_p)
diff --git a/src/x11/xprops.h b/src/x11/xprops.h
index f55d80baa..3ceebde84 100644
--- a/src/x11/xprops.h
+++ b/src/x11/xprops.h
@@ -69,10 +69,6 @@ typedef struct {
/* These all return the memory from Xlib, so require an XFree()
* when they return TRUE. They return TRUE on success.
*/
-gboolean meta_prop_get_motif_hints (MetaX11Display *x11_display,
- Window xwindow,
- Atom xatom,
- MotifWmHints **hints_p);
gboolean meta_prop_get_cardinal_list (MetaX11Display *x11_display,
Window xwindow,
Atom xatom,