mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Remove unused function editorclass::warpzonematch()
This function was marked as unused by cppcheck.
This commit is contained in:
@@ -1241,27 +1241,6 @@ int editorclass::match( int x, int y )
|
||||
return 0;
|
||||
}
|
||||
|
||||
int editorclass::warpzonematch( int x, int y )
|
||||
{
|
||||
if(free(x-1,y)==0 && free(x,y-1)==0 && free(x+1,y)==0 && free(x,y+1)==0) return 0;
|
||||
|
||||
if(free(x-1,y)==0 && free(x,y-1)==0) return 10;
|
||||
if(free(x+1,y)==0 && free(x,y-1)==0) return 11;
|
||||
if(free(x-1,y)==0 && free(x,y+1)==0) return 12;
|
||||
if(free(x+1,y)==0 && free(x,y+1)==0) return 13;
|
||||
|
||||
if(free(x,y-1)==0) return 1;
|
||||
if(free(x-1,y)==0) return 2;
|
||||
if(free(x,y+1)==0) return 3;
|
||||
if(free(x+1,y)==0) return 4;
|
||||
if(free(x-1,y-1)==0) return 5;
|
||||
if(free(x+1,y-1)==0) return 6;
|
||||
if(free(x-1,y+1)==0) return 7;
|
||||
if(free(x+1,y+1)==0) return 8;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int editorclass::outsidematch( int x, int y )
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user