cursor: Remove the theme_cursor cache

It's unused.
This commit is contained in:
Jasper St. Pierre 2014-04-16 22:41:03 -04:00
parent a2fb2c05ae
commit d7ee5cf33d
3 changed files with 0 additions and 9 deletions

View File

@ -61,8 +61,6 @@ struct _MetaCursorTracker {
MetaCursorReference *root_cursor;
MetaCursorReference *theme_cursors[META_CURSOR_LAST];
int current_x, current_y;
MetaRectangle current_rect;
MetaRectangle previous_rect;

View File

@ -84,10 +84,6 @@ meta_cursor_tracker_finalize (GObject *object)
if (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)
cogl_object_unref (self->pipeline);
if (self->gbm)

View File

@ -273,9 +273,6 @@ meta_cursor_reference_from_theme (MetaCursorTracker *tracker,
MetaCursorReference *self;
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);
if (!image)
return NULL;