mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 10:26:41 +00:00 
			
		
		
		
	Fix some ancient code
This commit is contained in:
		
							parent
							
								
									0aa1042fd7
								
							
						
					
					
						commit
						a87b64d2da
					
				
					 1 changed files with 3 additions and 18 deletions
				
			
		|  | @ -27,8 +27,6 @@ void ESMStore::load(ESM::ESMReader &esm, Loading::Listener* listener) | |||
| { | ||||
|     listener->setProgressRange(1000); | ||||
| 
 | ||||
|     std::set<std::string> missing; | ||||
| 
 | ||||
|     ESM::Dialogue *dialogue = 0; | ||||
| 
 | ||||
|     /// \todo Move this to somewhere else. ESMReader?
 | ||||
|  | @ -85,9 +83,9 @@ void ESMStore::load(ESM::ESMReader &esm, Loading::Listener* listener) | |||
|             } else if (n.val == ESM::REC_SKIL) { | ||||
|                 mSkills.load (esm); | ||||
|             } else { | ||||
|                 // Not found (this would be an error later)
 | ||||
|                 esm.skipRecord(); | ||||
|                 missing.insert(n.toString()); | ||||
|                 std::stringstream error; | ||||
|                 error << "Unknown record: " << n.toString(); | ||||
|                 throw std::runtime_error(error.str()); | ||||
|             } | ||||
|         } else { | ||||
|             // Load it
 | ||||
|  | @ -114,19 +112,6 @@ void ESMStore::load(ESM::ESMReader &esm, Loading::Listener* listener) | |||
|         } | ||||
|         listener->setProgress(esm.getFileOffset() / (float)esm.getFileSize() * 1000); | ||||
|     } | ||||
| 
 | ||||
|   /* This information isn't needed on screen. But keep the code around
 | ||||
|      for debugging purposes later. | ||||
| 
 | ||||
|   cout << "\n" << mStores.size() << " record types:\n"; | ||||
|   for(RecListList::iterator it = mStores.begin(); it != mStores.end(); it++) | ||||
|     cout << "  " << toStr(it->first) << ": " << it->second->getSize() << endl; | ||||
|   cout << "\nNot implemented yet: "; | ||||
|   for(set<string>::iterator it = missing.begin(); | ||||
|       it != missing.end(); it++ ) | ||||
|     cout << *it << " "; | ||||
|   cout << endl; | ||||
|   */ | ||||
| } | ||||
| 
 | ||||
| void ESMStore::setUp() | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue