Merge pull request #4077 from krishty/remove-useless-code

removed useless code
pull/4083/head
Kim Kulling 2021-09-15 10:57:46 +02:00 committed by GitHub
commit 71a87b653c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 0 additions and 11 deletions

View File

@ -186,7 +186,6 @@ D3MFOpcPackage::D3MFOpcPackage(IOSystem *pIOHandler, const std::string &rFile) :
D3MFOpcPackage::~D3MFOpcPackage() {
mZipArchive->Close(mRootStream);
delete mZipArchive;
mZipArchive = nullptr;
}
IOStream *D3MFOpcPackage::RootStream() const {

View File

@ -287,7 +287,6 @@ OpenGEXImporter::OpenGEXImporter() :
//------------------------------------------------------------------------------------------------
OpenGEXImporter::~OpenGEXImporter() {
m_ctx = nullptr;
}
//------------------------------------------------------------------------------------------------

View File

@ -146,9 +146,6 @@ Q3BSPFileImporter::Q3BSPFileImporter() :
// ------------------------------------------------------------------------------------------------
// Destructor.
Q3BSPFileImporter::~Q3BSPFileImporter() {
m_pCurrentMesh = nullptr;
m_pCurrentFace = nullptr;
// Clear face-to-material map
for (FaceMap::iterator it = m_MaterialLookupMap.begin(); it != m_MaterialLookupMap.end(); ++it) {
const std::string &matName = it->first;
@ -156,7 +153,6 @@ Q3BSPFileImporter::~Q3BSPFileImporter() {
delete it->second;
}
}
m_MaterialLookupMap.clear();
}
// ------------------------------------------------------------------------------------------------

View File

@ -77,7 +77,6 @@ Q3BSPFileParser::Q3BSPFileParser( const std::string &mapName, ZipArchiveIOSystem
// ------------------------------------------------------------------------------------------------
Q3BSPFileParser::~Q3BSPFileParser() {
delete m_pModel;
m_pModel = nullptr;
}
// ------------------------------------------------------------------------------------------------

View File

@ -100,7 +100,6 @@ XGLImporter::XGLImporter() :
// Destructor, private as well
XGLImporter::~XGLImporter() {
delete mXmlParser;
mXmlParser = nullptr;
}
// ------------------------------------------------------------------------------------------------

View File

@ -51,7 +51,6 @@ CIOStreamWrapper::~CIOStreamWrapper() {
/* Various places depend on this destructor to close the file */
if (mFile) {
mIO->mFileSystem->CloseProc(mIO->mFileSystem, mFile);
mFile = nullptr;
}
}

View File

@ -82,7 +82,6 @@ inline int select_fseek<8>(FILE *file, int64_t offset, int origin) {
DefaultIOStream::~DefaultIOStream() {
if (mFile) {
::fclose(mFile);
mFile = nullptr;
}
}

View File

@ -352,7 +352,6 @@ ZipArchiveIOSystem::Implement::Implement(IOSystem *pIOHandler, const char *pFile
ZipArchiveIOSystem::Implement::~Implement() {
if (m_ZipFileHandle != nullptr) {
unzClose(m_ZipFileHandle);
m_ZipFileHandle = nullptr;
}
}