summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_gfx_path.c
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2020-02-14 13:17:48 +0900
committerHermet Park <hermetpark@gmail.com>2020-02-14 13:17:48 +0900
commit064690d46e7ed67becf9710588e7c37a31ab807f (patch)
tree03bedcaf76d9f3c3ae2e3a3bfcc0cd4bbe50d842 /src/lib/efl/interfaces/efl_gfx_path.c
parent9a58f4bde4ed7598d491cb571ef56ad1558d4086 (diff)
gfx path: remove unreacheable code
Diffstat (limited to '')
-rw-r--r--src/lib/efl/interfaces/efl_gfx_path.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/efl/interfaces/efl_gfx_path.c b/src/lib/efl/interfaces/efl_gfx_path.c
index 7eb996cefc..d2da2ac35d 100644
--- a/src/lib/efl/interfaces/efl_gfx_path.c
+++ b/src/lib/efl/interfaces/efl_gfx_path.c
@@ -132,12 +132,10 @@ _efl_gfx_path_current_search(const Efl_Gfx_Path_Command *cmd,
132 132
133 if (!cmd || !points) return EINA_FALSE; 133 if (!cmd || !points) return EINA_FALSE;
134 134
135 for (i = 0; cmd[i] != EFL_GFX_PATH_COMMAND_TYPE_END; i++) 135 for (i = 0; cmd[i] < EFL_GFX_PATH_COMMAND_TYPE_END; i++)
136 { 136 {
137 switch (cmd[i]) 137 switch (cmd[i])
138 { 138 {
139 case EFL_GFX_PATH_COMMAND_TYPE_END:
140 break;
141 case EFL_GFX_PATH_COMMAND_TYPE_MOVE_TO: 139 case EFL_GFX_PATH_COMMAND_TYPE_MOVE_TO:
142 case EFL_GFX_PATH_COMMAND_TYPE_LINE_TO: 140 case EFL_GFX_PATH_COMMAND_TYPE_LINE_TO:
143 if (current_x) *current_x = points[0]; 141 if (current_x) *current_x = points[0];