1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Removed unused code.

This commit is contained in:
Frank Zago
2009-10-11 16:03:52 +00:00
parent eee726bd32
commit ea361fe2b4
2 changed files with 0 additions and 17 deletions

View File

@@ -287,22 +287,6 @@ void CLodHandler::extractFile(std::string FName, std::string name)
}
}
int CLodHandler::readNormalNr (const unsigned char* bufor, int bytCon, bool cyclic)
{
int ret=0;
int amp=1;
for (int i=0; i<bytCon; i++)
{
ret+=bufor[i]*amp;
amp*=256;
}
if(cyclic && bytCon<4 && ret>=amp/2)
{
ret = ret-amp;
}
return ret;
}
void CLodHandler::init(std::string lodFile, std::string dirName)
{
myDir = dirName;

View File

@@ -70,7 +70,6 @@ public:
CLodHandler();
~CLodHandler();
int readNormalNr (const unsigned char* bufor, int bytCon, bool cyclic=false); //lod header reading helper
int infs(unsigned char * in, int size, int realSize, std::ofstream & out, int wBits=15); //zlib fast handler
int infs2(unsigned char * in, int size, int realSize, unsigned char*& out, int wBits=15); //zlib fast handler
unsigned char * giveFile(std::string defName, int * length=NULL); //returns pointer to the decompressed data - it must be deleted when no longer needed!