Skip to content

Commit

Permalink
Address remaining review feedback for #14255 (#14931)
Browse files Browse the repository at this point in the history
This just removes some leftover code that I forgot to remove before the merge.
Additionally I forgot to add a newly added file to our `sources` build file.
  • Loading branch information
lhecker committed Feb 28, 2023
1 parent 814e44b commit cf87590
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion src/cascadia/TerminalSettingsEditor/Appearances.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
private:
Model::AppearanceConfig _appearance;
winrt::hstring _lastBgImagePath;
float _cachedLineHeight = 0;
};

struct Appearances : AppearancesT<Appearances>
Expand Down
10 changes: 0 additions & 10 deletions src/renderer/base/CSSLengthPercentage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,6 @@ CSSLengthPercentage CSSLengthPercentage::FromString(const wchar_t* str)
return obj;
}

CSSLengthPercentage::ReferenceFrame CSSLengthPercentage::GetReferenceFrame() const noexcept
{
return _referenceFrame;
}

float CSSLengthPercentage::Resolve(float factor) const noexcept
{
return _value * factor;
}

float CSSLengthPercentage::Resolve(float fallback, float dpi, float fontSize, float advanceWidth) const noexcept
{
switch (_referenceFrame)
Expand Down
1 change: 1 addition & 0 deletions src/renderer/base/sources.inc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ PRECOMPILED_CXX = 1
PRECOMPILED_INCLUDE = ..\precomp.h

SOURCES = \
..\CSSLengthPercentage.cpp \
..\FontInfo.cpp \
..\FontInfoBase.cpp \
..\FontInfoDesired.cpp \
Expand Down
2 changes: 0 additions & 2 deletions src/renderer/inc/CSSLengthPercentage.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ struct CSSLengthPercentage

static CSSLengthPercentage FromString(const wchar_t* str);

ReferenceFrame GetReferenceFrame() const noexcept;
float Resolve(float factor) const noexcept;
float Resolve(float fallback, float dpi, float fontSize, float advanceWidth) const noexcept;

private:
Expand Down

0 comments on commit cf87590

Please sign in to comment.