summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-29 10:48:06 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-29 10:56:53 +0900
commit20333c7905e6a7ea4eee14989625a6bb555f2f49 (patch)
tree2e7bdb3817e58f476c5c2860cda82a3797acede9
parent2eb46302a263c900b78d1a83ff0a2124a4ad3915 (diff)
downloadefl-20333c7905e6a7ea4eee14989625a6bb555f2f49.tar.gz
elm code - remove unneded extra check from copy and pasta it seems
extra check already done in if above - no need. looks like copy & paste of the checks from above thus why it's there, but not needed. not a bug, byt analysers dont like it so remove found by PVS studio
-rw-r--r--src/lib/elementary/elm_code_widget.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c
index 2846959f7c..ceea5d2c47 100644
--- a/src/lib/elementary/elm_code_widget.c
+++ b/src/lib/elementary/elm_code_widget.c
@@ -891,10 +891,9 @@ _popup_menu_show(Evas_Object *obj, Evas_Coord x, Evas_Coord y)
{
if (pd->editable)
{
- if (pd->editable)
- elm_hoversel_item_add
- (pd->hoversel, "Paste", NULL, ELM_ICON_NONE,
- _popup_menu_paste_cb, obj);
+ elm_hoversel_item_add
+ (pd->hoversel, "Paste", NULL, ELM_ICON_NONE,
+ _popup_menu_paste_cb, obj);
}
else