forked from enlightenment/efl
gfx path: remove unreacheable code
This commit is contained in:
parent
9a58f4bde4
commit
064690d46e
|
@ -132,12 +132,10 @@ _efl_gfx_path_current_search(const Efl_Gfx_Path_Command *cmd,
|
||||||
|
|
||||||
if (!cmd || !points) return EINA_FALSE;
|
if (!cmd || !points) return EINA_FALSE;
|
||||||
|
|
||||||
for (i = 0; cmd[i] != EFL_GFX_PATH_COMMAND_TYPE_END; i++)
|
for (i = 0; cmd[i] < EFL_GFX_PATH_COMMAND_TYPE_END; i++)
|
||||||
{
|
{
|
||||||
switch (cmd[i])
|
switch (cmd[i])
|
||||||
{
|
{
|
||||||
case EFL_GFX_PATH_COMMAND_TYPE_END:
|
|
||||||
break;
|
|
||||||
case EFL_GFX_PATH_COMMAND_TYPE_MOVE_TO:
|
case EFL_GFX_PATH_COMMAND_TYPE_MOVE_TO:
|
||||||
case EFL_GFX_PATH_COMMAND_TYPE_LINE_TO:
|
case EFL_GFX_PATH_COMMAND_TYPE_LINE_TO:
|
||||||
if (current_x) *current_x = points[0];
|
if (current_x) *current_x = points[0];
|
||||||
|
|
Loading…
Reference in New Issue