mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -05:00
cursor: Remove the theme_cursor cache
It's unused.
This commit is contained in:
parent
a2fb2c05ae
commit
d7ee5cf33d
@ -61,8 +61,6 @@ struct _MetaCursorTracker {
|
|||||||
|
|
||||||
MetaCursorReference *root_cursor;
|
MetaCursorReference *root_cursor;
|
||||||
|
|
||||||
MetaCursorReference *theme_cursors[META_CURSOR_LAST];
|
|
||||||
|
|
||||||
int current_x, current_y;
|
int current_x, current_y;
|
||||||
MetaRectangle current_rect;
|
MetaRectangle current_rect;
|
||||||
MetaRectangle previous_rect;
|
MetaRectangle previous_rect;
|
||||||
|
@ -84,10 +84,6 @@ meta_cursor_tracker_finalize (GObject *object)
|
|||||||
if (self->root_cursor)
|
if (self->root_cursor)
|
||||||
meta_cursor_reference_unref (self->root_cursor);
|
meta_cursor_reference_unref (self->root_cursor);
|
||||||
|
|
||||||
for (i = 0; i < META_CURSOR_LAST; i++)
|
|
||||||
if (self->theme_cursors[i])
|
|
||||||
meta_cursor_reference_unref (self->theme_cursors[i]);
|
|
||||||
|
|
||||||
if (self->pipeline)
|
if (self->pipeline)
|
||||||
cogl_object_unref (self->pipeline);
|
cogl_object_unref (self->pipeline);
|
||||||
if (self->gbm)
|
if (self->gbm)
|
||||||
|
@ -273,9 +273,6 @@ meta_cursor_reference_from_theme (MetaCursorTracker *tracker,
|
|||||||
MetaCursorReference *self;
|
MetaCursorReference *self;
|
||||||
XcursorImage *image;
|
XcursorImage *image;
|
||||||
|
|
||||||
if (tracker->theme_cursors[cursor])
|
|
||||||
return meta_cursor_reference_ref (tracker->theme_cursors[cursor]);
|
|
||||||
|
|
||||||
image = load_cursor_on_client (tracker->screen->display, cursor);
|
image = load_cursor_on_client (tracker->screen->display, cursor);
|
||||||
if (!image)
|
if (!image)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user