Skip to content

Commit 9b6001f

Browse files
committed
Remove unused var + duplicate call
1 parent 4a2a4fe commit 9b6001f

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

Client/gui/CGUI_Impl.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,6 @@ void CGUI_Impl::CreateRootWindow()
153153

154154
void CGUI_Impl::SetSkin(const char* szName)
155155
{
156-
m_currentSkin = szName;
157-
158156
if (m_HasSchemeLoaded)
159157
{
160158
CEGUI::GlobalEventSet::getSingletonPtr()->removeAllEvents();
@@ -171,9 +169,6 @@ void CGUI_Impl::SetSkin(const char* szName)
171169

172170
CEGUI::System::getSingleton().setDefaultMouseCursor("CGUI-Images", "MouseArrow");
173171

174-
// Destroy any windows we already have
175-
CEGUI::WindowManager::getSingleton().destroyAllWindows();
176-
177172
// Clean up CEGUI - this also re-creates the root window
178173
Cleanup();
179174

Client/gui/CGUI_Impl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ class CGUI_Impl : public CGUI, public CGUITabList
364364
bool m_HasSchemeLoaded;
365365
SString m_CurrentSchemeName;
366366
CElapsedTime m_RenderOkTimer;
367-
const char* m_currentSkin;
368367

369368
void CreateRootWindow();
370369
};

0 commit comments

Comments
 (0)