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:
@@ -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;
|
||||
|
@@ -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!
|
||||
|
Reference in New Issue
Block a user