aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-04-08 08:34:52 +1000
committerNeil <nyamatongwe@gmail.com>2019-04-08 08:34:52 +1000
commit4a44fd852450d9e97032633524f92d1fad5f7187 (patch)
treee7e99b2532a0766190cba557131431b05ec4ceb2 /src/ViewStyle.cxx
parentbdfbc5325157c037fdaa70d6c7fe757046f08906 (diff)
downloadscintilla-mirror-4a44fd852450d9e97032633524f92d1fad5f7187.tar.gz
Backport: Rename FontNames to UniqueStringSet and move into UniqueString.
It may be useful in more situations than just font names. Backport of changeset 7409:a70a4ee51448.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r--src/ViewStyle.cxx26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index 54f20de4b..d3f225b98 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -32,32 +32,6 @@ MarginStyle::MarginStyle(int style_, int width_, int mask_) :
style(style_), width(width_), mask(mask_), sensitive(false), cursor(SC_CURSORREVERSEARROW) {
}
-// A list of the fontnames - avoids wasting space in each style
-FontNames::FontNames() {
-}
-
-FontNames::~FontNames() {
- Clear();
-}
-
-void FontNames::Clear() {
- names.clear();
-}
-
-const char *FontNames::Save(const char *name) {
- if (!name)
- return nullptr;
-
- for (const UniqueString &nm : names) {
- if (strcmp(nm.get(), name) == 0) {
- return nm.get();
- }
- }
-
- names.push_back(UniqueStringCopy(name));
- return names.back().get();
-}
-
FontRealised::FontRealised() {
}