1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

Fix unreachable code warnings

MSVC complains about these, doesn't seem like GCC does. These can be
safely removed because they're unreachable, and they always follow a
case-switch or similar that has a default case which this code is a
duplicate of anyway. (Unless it isn't, in which case all the better to
remove it, becausee otherwise it looks misleading or confusing to casual
glances at the code.)
This commit is contained in:
Misa 2021-02-14 12:53:47 -08:00 committed by Ethan Lee
parent a2ba37a1a4
commit 39abcfa8d9
2 changed files with 0 additions and 6 deletions

View file

@ -487,7 +487,6 @@ int mapclass::finalat(int x, int y)
{
return contents[x + vmult[y]];
}
return 0;
}
int mapclass::maptiletoenemycol(int t)

View file

@ -661,7 +661,6 @@ int editorclass::getenemycol(int t)
return 6;
break;
}
return 0;
}
int editorclass::getwarpbackground(int rx, int ry)
@ -939,7 +938,6 @@ int editorclass::getenemyframe(int t)
return 78;
break;
}
return 78;
}
@ -1334,7 +1332,6 @@ int editorclass::edgetile( int x, int y )
return 0;
break;
}
return 0;
}
int editorclass::outsideedgetile( int x, int y )
@ -1352,7 +1349,6 @@ int editorclass::outsideedgetile( int x, int y )
return 2;
break;
}
return 2;
}
@ -1404,7 +1400,6 @@ int editorclass::backedgetile( int x, int y )
return 0;
break;
}
return 0;
}
int editorclass::labspikedir( int x, int y, int t )