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)
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)
891 { 891 {
892 if (pd->editable) 892 if (pd->editable)
893 { 893 {
894 if (pd->editable) 894 elm_hoversel_item_add
895 elm_hoversel_item_add 895 (pd->hoversel, "Paste", NULL, ELM_ICON_NONE,
896 (pd->hoversel, "Paste", NULL, ELM_ICON_NONE, 896 _popup_menu_paste_cb, obj);
897 _popup_menu_paste_cb, obj);
898 897
899 } 898 }
900 else 899 else