[mutter] cursor-renderer: Remove unneeded NULL check
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] cursor-renderer: Remove unneeded NULL check
- Date: Thu, 6 Aug 2020 16:26:40 +0000 (UTC)
commit b319add04b710870400764177bbd92f747c1083b
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Wed Jul 29 11:07:32 2020 +0200
cursor-renderer: Remove unneeded NULL check
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1391
src/backends/meta-cursor-renderer.c | 4 ----
1 file changed, 4 deletions(-)
---
diff --git a/src/backends/meta-cursor-renderer.c b/src/backends/meta-cursor-renderer.c
index 27c9d73001..c4d680235f 100644
--- a/src/backends/meta-cursor-renderer.c
+++ b/src/backends/meta-cursor-renderer.c
@@ -132,10 +132,6 @@ update_stage_overlay (MetaCursorRenderer *renderer,
CoglTexture *texture;
graphene_rect_t rect = GRAPHENE_RECT_INIT_ZERO;
- /* During early initialization, we can have no stage */
- if (!stage)
- return;
-
if (cursor_sprite)
{
rect = meta_cursor_renderer_calculate_rect (renderer, cursor_sprite);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]