mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
Remove unnecessary SetValue method
This commit is contained in:
parent
c82f93f4b8
commit
422ee08903
4 changed files with 0 additions and 15 deletions
|
@ -196,13 +196,6 @@ bool UnitConversionManager::UnitConverter::IsSwitchedActive() const
|
|||
return m_switchedActive;
|
||||
}
|
||||
|
||||
void UnitConversionManager::UnitConverter::SetValue(const std::wstring& newValue)
|
||||
{
|
||||
m_returnDisplay = m_currentDisplay;
|
||||
m_currentDisplay = newValue;
|
||||
m_currentHasDecimal = (m_currentDisplay.find(L'.') != wstring::npos);
|
||||
}
|
||||
|
||||
wstring UnitConverter::CategoryToString(const Category& c, wstring_view delimiter)
|
||||
{
|
||||
return Quote(std::to_wstring(c.id))
|
||||
|
|
|
@ -224,7 +224,6 @@ namespace UnitConversionManager
|
|||
virtual void SetCurrentUnitTypes(const Unit& fromType, const Unit& toType) = 0;
|
||||
virtual void SwitchActive(const std::wstring& newValue) = 0;
|
||||
virtual bool IsSwitchedActive() const = 0;
|
||||
virtual void SetValue(const std::wstring& newValue) = 0;
|
||||
virtual std::wstring SaveUserPreferences() = 0;
|
||||
virtual void RestoreUserPreferences(_In_ std::wstring_view userPreferences) = 0;
|
||||
virtual void SendCommand(Command command) = 0;
|
||||
|
@ -249,7 +248,6 @@ namespace UnitConversionManager
|
|||
void SetCurrentUnitTypes(const Unit& fromType, const Unit& toType) override;
|
||||
void SwitchActive(const std::wstring& newValue) override;
|
||||
bool IsSwitchedActive() const override;
|
||||
void SetValue(const std::wstring& newValue) override;
|
||||
std::wstring SaveUserPreferences() override;
|
||||
void RestoreUserPreferences(std::wstring_view userPreference) override;
|
||||
void SendCommand(Command command) override;
|
||||
|
|
|
@ -225,11 +225,6 @@ bool UnitConverterMock::IsSwitchedActive() const
|
|||
return false;
|
||||
}
|
||||
|
||||
void UnitConverterMock::SetValue(const std::wstring& newValue)
|
||||
{
|
||||
m_curValue = newValue;
|
||||
}
|
||||
|
||||
std::wstring UnitConverterMock::SaveUserPreferences()
|
||||
{
|
||||
return L"TEST";
|
||||
|
|
|
@ -40,7 +40,6 @@ namespace CalculatorUnitTests
|
|||
void SetCurrentUnitTypes(const UCM::Unit& fromType, const UCM::Unit& toType) override;
|
||||
void SwitchActive(const std::wstring& newValue) override;
|
||||
bool IsSwitchedActive() const override;
|
||||
void SetValue(const std::wstring& newValue) override;
|
||||
std::wstring SaveUserPreferences() override;
|
||||
void RestoreUserPreferences(_In_ std::wstring_view userPreferences) override;
|
||||
void SendCommand(UCM::Command command) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue