[commit] r1308 - trunk/GME/XmlBackEnd
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Fri May 13 15:05:29 CDT 2011
Author: ksmyth
Date: Fri May 13 15:05:29 2011
New Revision: 1308
Log:
Remove unused code
Modified:
trunk/GME/XmlBackEnd/CoreXmlFile.cpp
trunk/GME/XmlBackEnd/CoreXmlFile.h
Modified: trunk/GME/XmlBackEnd/CoreXmlFile.cpp
==============================================================================
--- trunk/GME/XmlBackEnd/CoreXmlFile.cpp Fri May 13 15:05:07 2011 (r1307)
+++ trunk/GME/XmlBackEnd/CoreXmlFile.cpp Fri May 13 15:05:29 2011 (r1308)
@@ -3553,42 +3553,6 @@
ofs << Transcoder::NoEscape << prefix << "</" << metaToken << ">\n";
}
-/*
-Moves to continer and all contained object to disk if possible (all lock values are 0)
-It deletes secondary attributes from memory.
-
-Returns true if the objects have been moved to disk successfully
-*/
-bool CCoreXmlFile::moveContainerToDisk(XmlObject * container)
-{
- XmlObjVec objs;
- XmlObjVecIter it;
-
- getContainedObjects( container, objs );
- for( it=objs.begin(); it!=objs.end(); ++it )
- {
- XmlObject * obj = *it;
-
- AttribMapIter it2 = obj->m_attributes.find(ATTRID_LOCK);
- ASSERT( it2 != obj->m_attributes.end() );
-
- XmlAttrLock * lock = (XmlAttrLock*)(it2->second);
- if( lock != 0 )
- return false;
- }
-
- // write all objects to disk
- writeXMLFile( container );
-
- // unload secondary attributes from memory
- for( it=objs.begin(); it!=objs.end(); ++it )
- {
- XmlObject * obj = *it;
- obj->deleteSecondaryAttribs();
- }
-
- return false;
-}
void CCoreXmlFile::fullReadContainer(XmlObject * container)
{
Modified: trunk/GME/XmlBackEnd/CoreXmlFile.h
==============================================================================
--- trunk/GME/XmlBackEnd/CoreXmlFile.h Fri May 13 15:05:07 2011 (r1307)
+++ trunk/GME/XmlBackEnd/CoreXmlFile.h Fri May 13 15:05:29 2011 (r1308)
@@ -611,8 +611,6 @@
void timeSync (const char * fileName, XmlObject * container);
- bool moveContainerToDisk (XmlObject * container);
-
void fullReadContainer (XmlObject * container);
void readXMLFile (const char * fileName, UnresolvedPointerVec& pointers, bool fullLoad );
More information about the gme-commit
mailing list