From 46087564d4184b28740b0c45c1bac199ab1942ec Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 16 Mar 2014 14:14:29 +0300 Subject: Improve theme usage. Removed instance method. --- src/touchmanager.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/touchmanager.cpp') diff --git a/src/touchmanager.cpp b/src/touchmanager.cpp index b1ed41fdc..b9681c337 100644 --- a/src/touchmanager.cpp +++ b/src/touchmanager.cpp @@ -122,7 +122,6 @@ void TouchManager::loadTouchItem(TouchItem **item, const std::string &name, const TouchFuncPtr fOut) { *item = nullptr; - Theme *const theme = Theme::instance(); if (!theme) return; ImageRect *images = new ImageRect; @@ -394,7 +393,6 @@ void TouchManager::loadPad() void TouchManager::loadButtons() { const int sz = (mButtonsSize + 1) * 50; - Theme *const theme = Theme::instance(); if (!theme) return; Skin *const skin = theme->load("dbutton.xml", ""); -- cgit v1.2.3-60-g2f50