diff options
author | Zufu Liu <unknown> | 2021-10-17 15:43:58 +1100 |
---|---|---|
committer | Zufu Liu <unknown> | 2021-10-17 15:43:58 +1100 |
commit | c3d5994ca05b2bb9fb9534af606acce9ae3daa81 (patch) | |
tree | 6518728d964e797b2cbff776817e91bbbb282fa2 /src/PositionCache.cxx | |
parent | 895d7811901871cc32afb598fafa2b60e4df666c (diff) | |
download | scintilla-mirror-c3d5994ca05b2bb9fb9534af606acce9ae3daa81.tar.gz |
Remove SpecialRepresentations::Contains which is no longer used.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r-- | src/PositionCache.cxx | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index af1c5065c..6370edb33 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -632,15 +632,6 @@ const Representation *SpecialRepresentations::RepresentationFromCharacter(std::s return nullptr; } -bool SpecialRepresentations::Contains(std::string_view charBytes) const { - PLATFORM_ASSERT(charBytes.length() <= 4); - const unsigned char ucStart = charBytes.empty() ? 0 : charBytes[0]; - if (!startByteHasReprs[ucStart]) - return false; - const MapRepresentation::const_iterator it = mapReprs.find(KeyFromString(charBytes)); - return it != mapReprs.end(); -} - void SpecialRepresentations::Clear() { mapReprs.clear(); constexpr short none = 0; |