mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Remove unused function editorclass::warpzonematch()
This function was marked as unused by cppcheck.
This commit is contained in:
parent
a5e5c19913
commit
ff3e390352
2 changed files with 0 additions and 22 deletions
|
@ -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 )
|
||||
{
|
||||
|
||||
|
|
|
@ -141,7 +141,6 @@ class editorclass{
|
|||
int absfree(int x, int y);
|
||||
|
||||
int match(int x, int y);
|
||||
int warpzonematch(int x, int y);
|
||||
int outsidematch(int x, int y);
|
||||
|
||||
int backmatch(int x, int y);
|
||||
|
|
Loading…
Reference in a new issue