[nautilus] eel-canvas: Remove redundant comparison
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] eel-canvas: Remove redundant comparison
- Date: Sun, 29 Mar 2020 19:53:16 +0000 (UTC)
commit ba24423344f568fac6c161bdb9e3aa3e4b7408f9
Author: Vilhelm Prytz <vilhelm prytznet se>
Date: Sun Mar 29 03:15:15 2020 +0200
eel-canvas: Remove redundant comparison
Comparison is always false because positions >= 1
Makes comparison redundant
eel/eel-canvas.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/eel/eel-canvas.c b/eel/eel-canvas.c
index 154dbd6b2..e6dc73327 100644
--- a/eel/eel-canvas.c
+++ b/eel/eel-canvas.c
@@ -698,7 +698,7 @@ eel_canvas_item_lower (EelCanvasItem *item,
g_return_if_fail (EEL_IS_CANVAS_ITEM (item));
g_return_if_fail (positions >= 1);
- if (!item->parent || positions == 0)
+ if (!item->parent)
{
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]