mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 18:19: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:
parent
a2ba37a1a4
commit
39abcfa8d9
2 changed files with 0 additions and 6 deletions
|
@ -487,7 +487,6 @@ int mapclass::finalat(int x, int y)
|
||||||
{
|
{
|
||||||
return contents[x + vmult[y]];
|
return contents[x + vmult[y]];
|
||||||
}
|
}
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int mapclass::maptiletoenemycol(int t)
|
int mapclass::maptiletoenemycol(int t)
|
||||||
|
|
|
@ -661,7 +661,6 @@ int editorclass::getenemycol(int t)
|
||||||
return 6;
|
return 6;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int editorclass::getwarpbackground(int rx, int ry)
|
int editorclass::getwarpbackground(int rx, int ry)
|
||||||
|
@ -939,7 +938,6 @@ int editorclass::getenemyframe(int t)
|
||||||
return 78;
|
return 78;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return 78;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1334,7 +1332,6 @@ int editorclass::edgetile( int x, int y )
|
||||||
return 0;
|
return 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int editorclass::outsideedgetile( int x, int y )
|
int editorclass::outsideedgetile( int x, int y )
|
||||||
|
@ -1352,7 +1349,6 @@ int editorclass::outsideedgetile( int x, int y )
|
||||||
return 2;
|
return 2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1404,7 +1400,6 @@ int editorclass::backedgetile( int x, int y )
|
||||||
return 0;
|
return 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int editorclass::labspikedir( int x, int y, int t )
|
int editorclass::labspikedir( int x, int y, int t )
|
||||||
|
|
Loading…
Reference in a new issue