aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Fedchin <anightik@gmail.com>2018-02-20 11:13:29 +0300
committerAnton Fedchin <anightik@gmail.com>2018-02-20 11:13:29 +0300
commit287bdc3f3793c79adfe682accb41d49a0d627cc4 (patch)
treea0c4e9ac39691738cde8513bf794267ac7f60708
parentbc7d5ff7321f1e115640aa676e3eca1b0c51b56c (diff)
[win10] drop obsolete code.
-rw-r--r--xbmc/platform/win10/Win10App.cpp1
-rw-r--r--xbmc/rendering/dx/RenderContext.h25
2 files changed, 0 insertions, 26 deletions
diff --git a/xbmc/platform/win10/Win10App.cpp b/xbmc/platform/win10/Win10App.cpp
index d3ff62209b..4c2c3e48a9 100644
--- a/xbmc/platform/win10/Win10App.cpp
+++ b/xbmc/platform/win10/Win10App.cpp
@@ -84,7 +84,6 @@ void App::Initialize(CoreApplicationView^ applicationView)
// Called when the CoreWindow object is created (or re-created).
void App::SetWindow(CoreWindow^ window)
{
- DX::CoreWindowHolder::Get()->SetWindow(window);
}
// Initializes scene resources, or loads a previously saved app state.
diff --git a/xbmc/rendering/dx/RenderContext.h b/xbmc/rendering/dx/RenderContext.h
index 9cb877dd83..9c63471747 100644
--- a/xbmc/rendering/dx/RenderContext.h
+++ b/xbmc/rendering/dx/RenderContext.h
@@ -39,30 +39,5 @@ namespace DX
{
return dynamic_cast<CWinSystemWin10DX&>(CServiceBroker::GetRenderSystem());
}
-
- class CoreWindowHolder
- {
- public:
- static std::shared_ptr<CoreWindowHolder> Get()
- {
- static std::shared_ptr<CoreWindowHolder> instance(new CoreWindowHolder());
- return instance;
- }
-
- ~CoreWindowHolder() { m_coreWindow.Release(); }
-
- void SetWindow(Windows::UI::Core::CoreWindow^ window)
- {
- m_coreWindow = window;
- }
-
- Windows::UI::Core::CoreWindow^ GetWindow()
- {
- return m_coreWindow.Get();
- }
-
- private:
- Platform::Agile<Windows::UI::Core::CoreWindow^> m_coreWindow;
- };
#endif
}