diff --git a/src/host/VtIo.cpp b/src/host/VtIo.cpp index f3a4b0228d0..b0f4ebad2c3 100644 --- a/src/host/VtIo.cpp +++ b/src/host/VtIo.cpp @@ -25,7 +25,6 @@ using namespace Microsoft::Console::Interactivity; VtIo::VtIo() : _initialized(false), - _objectsCreated(false), _lookingForCursorPosition(false), _IoMode(VtIoMode::INVALID) { @@ -224,13 +223,12 @@ VtIo::VtIo() : } CATCH_RETURN(); - _objectsCreated = true; return S_OK; } bool VtIo::IsUsingVt() const { - return _objectsCreated; + return _initialized; } // Routine Description: @@ -246,7 +244,7 @@ bool VtIo::IsUsingVt() const [[nodiscard]] HRESULT VtIo::StartIfNeeded() { // If we haven't been set up, do nothing (because there's nothing to start) - if (!_objectsCreated) + if (!_initialized) { return S_FALSE; } @@ -514,7 +512,7 @@ void VtIo::EndResize() // - void VtIo::EnableConptyModeForTests(std::unique_ptr vtRenderEngine) { - _objectsCreated = true; + _initialized = true; _pVtRenderEngine = std::move(vtRenderEngine); } #endif diff --git a/src/host/VtIo.hpp b/src/host/VtIo.hpp index b3661f59d43..e47d37d9ef6 100644 --- a/src/host/VtIo.hpp +++ b/src/host/VtIo.hpp @@ -63,7 +63,6 @@ namespace Microsoft::Console::VirtualTerminal VtIoMode _IoMode; bool _initialized; - bool _objectsCreated; bool _lookingForCursorPosition;