Ticket #1852: remove-unused.patch

File remove-unused.patch, 5.1 KB (added by Markus, 11 years ago)
  • trunk/source/graphics/MapReader.cpp

    diff -Nur a/trunk/source/graphics/MapReader.cpp b/trunk/source/graphics/MapReader.cpp
    a b  
    14541454    // If we have graphics, get rest of settings
    14551455    if (pWaterMan)
    14561456    {
    1457         std::wstring waterType;
     1457        // std::wstring waterType;
    14581458        // TODO: Water type not implemented
    14591459        //GET_ENVIRONMENT_PROPERTY(waterBodyObj.get(), Type, waterType)
    14601460
  • trunk/source/gui/GUItext.cpp

    diff -Nur a/trunk/source/gui/GUItext.cpp b/trunk/source/gui/GUItext.cpp
    a b  
    5959    for (itTextChunk=m_TextChunks.begin(); itTextChunk!=m_TextChunks.end(); ++itTextChunk)
    6060    {
    6161        // - GL - Temp
    62         TextChunk tc = *itTextChunk;
     62        // TextChunk tc = *itTextChunk;
    6363        // -- GL
    6464
    6565        // Get the area that is overlapped by both the TextChunk and
  • trunk/source/renderer/TerrainRenderer.cpp

    diff -Nur a/trunk/source/renderer/TerrainRenderer.cpp b/trunk/source/renderer/TerrainRenderer.cpp
    a b  
    761761            glGenTextures(1, &renderedTexture);
    762762            WaterMgr->m_waveTT = renderedTexture;
    763763           
    764             glBindTexture(GL_TEXTURE_2D, WaterMgr->m_waveTT);
    765             int size = (int)round_up_to_pow2((unsigned)g_Renderer.GetHeight());
    766             if(size > g_Renderer.GetHeight()) size /= 2;
    767            
     764            glBindTexture(GL_TEXTURE_2D, WaterMgr->m_waveTT);           
    768765            glTexImage2D(GL_TEXTURE_2D, 0,GL_RGBA, (float)g_Renderer.GetWidth(), (float)g_Renderer.GetHeight(), 0,GL_RGBA, GL_UNSIGNED_BYTE, 0);
    769 
    770766        }
    771767        glBindTexture(GL_TEXTURE_2D, WaterMgr->m_waveTT);
    772768       
  • trunk/source/scriptinterface/DebuggingServer.cpp

    diff -Nur a/trunk/source/scriptinterface/DebuggingServer.cpp b/trunk/source/scriptinterface/DebuggingServer.cpp
    a b  
    4545            if ((*itr)->GetIsInBreak())
    4646            {
    4747                stream.str("");
    48                 std::string str = stream.str();
     48                stream.str();
    4949                (*itr)->GetCallstack(stream);
    50                 str = stream.str();
     50                stream.str();
    5151                if (stream.str() != "")
    5252                {
    5353                    if (nbrCallstacksWritten != 0)
     
    187187void CDebuggingServer::EnumVfsJSFiles(std::stringstream& response)
    188188{
    189189    VfsPath path = L"";
    190     VfsPaths pathnames;
    191190    response.str("");
    192191   
    193192    std::vector<std::string> templates;
  • trunk/source/scriptinterface/ThreadDebugger.cpp

    diff -Nur a/trunk/source/scriptinterface/ThreadDebugger.cpp b/trunk/source/scriptinterface/ThreadDebugger.cpp
    a b  
    645645   
    646646    JSStackFrame *fp;
    647647    JSStackFrame *iter = 0;
    648     std::string functionName;
    649648    jsint counter = 0;
    650649   
    651650    JSObject* jsArray;
  • trunk/source/simulation2/components/CCmpAIManager.cpp

    diff -Nur a/trunk/source/simulation2/components/CCmpAIManager.cpp b/trunk/source/simulation2/components/CCmpAIManager.cpp
    a b  
    911911       
    912912        // Get the territory data
    913913        //  Since getting the territory grid can trigger a recalculation, we check NeedUpdate first
    914         bool territoryMapDirty = false;
    915914        Grid<u8> dummyGrid2;
    916915        const Grid<u8>* territoryMap = &dummyGrid2;
    917916        CmpPtr<ICmpTerritoryManager> cmpTerritoryManager(GetSimContext(), SYSTEM_ENTITY);
    918917        if (cmpTerritoryManager && cmpTerritoryManager->NeedUpdate(&m_TerritoriesDirtyID))
    919918        {
    920919            territoryMap = &cmpTerritoryManager->GetTerritoryGrid();
    921             territoryMapDirty = true;
    922920        }
    923921       
    924922        LoadPathfinderClasses(state);
  • trunk/source/simulation2/system/ComponentManagerSerialization.cpp

    diff -Nur a/trunk/source/simulation2/system/ComponentManagerSerialization.cpp b/trunk/source/simulation2/system/ComponentManagerSerialization.cpp
    a b  
    6161
    6262    // We want the output to be grouped by entity ID, so invert the CComponentManager data structures
    6363    std::map<entity_id_t, std::map<ComponentTypeId, IComponent*> > components;
    64     std::map<ComponentTypeId, std::string> names;
    6564
    6665    std::map<ComponentTypeId, std::map<entity_id_t, IComponent*> >::const_iterator ctit = m_ComponentsByTypeId.begin();
    6766    for (; ctit != m_ComponentsByTypeId.end(); ++ctit)
  • trunk/source/tools/atlas/GameInterface/MessagePasserImpl.cpp

    diff -Nur a/trunk/source/tools/atlas/GameInterface/MessagePasserImpl.cpp b/trunk/source/tools/atlas/GameInterface/MessagePasserImpl.cpp
    a b  
    165165//  while (0 != (err = sem_timedwait(psem, &abs_timeout)))
    166166// #endif
    167167
    168     int err;
    169     while (0 != (err = sem_wait(m_Semaphore)))
     168    while (0 != sem_wait(m_Semaphore))
    170169    {
    171170        // If timed out, call callback and try again
    172171//      if (errno == ETIMEDOUT)