-/**
- * \brief Clear the std::list from given entry BUT keep the entry.
- * @param entryToRemove Entry to remove.
- * @return true if the entry was found and removed; false otherwise
- */
-bool SQItem::RemoveEntryNoDestroy(DocEntry *entryToRemove)
-{
- for(ListDocEntry::iterator it = DocEntries.begin();
- it != DocEntries.end();
- ++it)
- {
- if( *it == entryToRemove )
- {
- DocEntries.erase(it);
- gdcmWarningMacro( "One element erased, no destroyed: "
- << entryToRemove->GetKey() );
- return true;
- }
- }
-
- gdcmWarningMacro( "Entry not found:" << entryToRemove->GetKey() );
- return false ;
-}
-