[mutter] cursor-sprite: Don't NULL check realize_texture() vfunc
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] cursor-sprite: Don't NULL check realize_texture() vfunc
- Date: Thu, 6 Aug 2020 16:26:40 +0000 (UTC)
commit e1f25b72449a9910f0803a47e4d4102e6d29f0ef
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Wed Jul 29 11:09:51 2020 +0200
cursor-sprite: Don't NULL check realize_texture() vfunc
All non-abstract MetaCursorSprite type implementations implement this
function, so no need to NULL check it.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1391
src/backends/meta-cursor.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/backends/meta-cursor.c b/src/backends/meta-cursor.c
index f6b2077626..874593d5ad 100644
--- a/src/backends/meta-cursor.c
+++ b/src/backends/meta-cursor.c
@@ -189,10 +189,7 @@ meta_cursor_sprite_prepare_at (MetaCursorSprite *sprite,
void
meta_cursor_sprite_realize_texture (MetaCursorSprite *sprite)
{
- MetaCursorSpriteClass *klass = META_CURSOR_SPRITE_GET_CLASS (sprite);
-
- if (klass->realize_texture)
- klass->realize_texture (sprite);
+ META_CURSOR_SPRITE_GET_CLASS (sprite)->realize_texture (sprite);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]