mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-20 21:33:10 -07:00
remove unused fields
This commit is contained in:
parent
54516925db
commit
3462bd8c7e
2 changed files with 7 additions and 11 deletions
|
@ -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()]
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue