Skip to content

Commit

Permalink
display.c: Remove meta_display_get_atom() - it is unused, and breaks
Browse files Browse the repository at this point in the history
the build when g-ir-scanner (with gobject-introspection ~1.62)

ref:
https://gitlab.gnome.org/GNOME/mutter/commit/edeac1de09473809debc4d0b8c416f79dde8f500
  • Loading branch information
mtwebster committed Jan 14, 2020
1 parent a452ec9 commit eaacd66
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
14 changes: 0 additions & 14 deletions src/core/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -5640,20 +5640,6 @@ meta_display_get_shape_event_base (MetaDisplay *display)
}
#endif

/**
* meta_display_get_atom: (skip)
*
* Gets up an X atom that Muffin prefetched at startup.
*
* Return value: the X atom corresponding to the given atom enumeration
*/
Atom meta_display_get_atom (MetaDisplay *display, MetaAtom meta_atom)
{
Atom *atoms = & display->atom_WM_PROTOCOLS;

return atoms[meta_atom - 1];
}

/**
* meta_display_get_leader_window:
* @display: a #MetaDisplay
Expand Down
9 changes: 0 additions & 9 deletions src/meta/display.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,6 @@ GType meta_display_get_type (void) G_GNUC_CONST;

#define meta_XFree(p) do { if ((p)) XFree ((p)); } while (0)

typedef enum
{
META_ATOM_FIRST = 0,
#define item(x) META_ATOM_##x,
#include "atomnames.h"
#undef item
}MetaAtom;

typedef enum {
META_LIST_DEFAULT = 0, /* normal windows */
META_LIST_INCLUDE_OVERRIDE_REDIRECT = 1 << 0, /* normal and O-R */
Expand All @@ -90,7 +82,6 @@ gboolean meta_display_xwindow_is_a_no_focus_window (MetaDisplay *display,

int meta_display_get_damage_event_base (MetaDisplay *display);
int meta_display_get_shape_event_base (MetaDisplay *display);
Atom meta_display_get_atom (MetaDisplay *display, MetaAtom meta_atom);

gboolean meta_display_xserver_time_is_before (MetaDisplay *display,
guint32 time1,
Expand Down

0 comments on commit eaacd66

Please sign in to comment.