remove unused fields

This commit is contained in:
Tian Liao 2024-04-03 21:04:01 +08:00
commit 3462bd8c7e
2 changed files with 7 additions and 11 deletions

View file

@ -30,11 +30,10 @@ namespace
namespace GraphControl::DX
{
RenderMain::RenderMain(SwapChainPanel ^ panel)
: m_deviceResources{ panel }
, m_nearestPointRenderer{ &m_deviceResources }
, m_backgroundColor{ {} }
, m_swapChainPanel{ panel }
, m_TraceLocation(Point(0, 0))
: m_deviceResources(panel)
, m_nearestPointRenderer(&m_deviceResources)
, m_swapChainPanel(panel)
, m_TraceLocation(Point{ 0, 0 })
, m_Tracing(false)
{
// Register to be notified if the Device is lost or recreated
@ -47,6 +46,7 @@ namespace GraphControl::DX
RenderMain::~RenderMain()
{
m_renderPassCts.cancel();
UnregisterEventHandlers();
}
@ -212,8 +212,8 @@ namespace GraphControl::DX
}
m_renderPassCts = concurrency::cancellation_token_source{};
bool result = true;
co_await CoreWindow::GetForCurrentThread()->Dispatcher->RunAsync(
bool result = false;
co_await m_coreWindow->Dispatcher->RunAsync(
CoreDispatcherPriority::High,
ref new DispatchedHandler(
[this, &result, cancel = m_renderPassCts.get_token()]

View file

@ -175,10 +175,6 @@ namespace GraphControl::DX
Windows::Foundation::EventRegistrationToken m_tokenOrientationChanged;
Windows::Foundation::EventRegistrationToken m_tokenDisplayContentsInvalidated;
// Track our independent input on a background worker thread.
Windows::Foundation::IAsyncAction ^ m_inputLoopWorker = nullptr;
Windows::UI::Core::CoreIndependentInputSource ^ m_coreInput = nullptr;
double m_XTraceValue;
double m_YTraceValue;