From 4333970abdd54863a591f95df3c3e7e968aa2519 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 8 Apr 2019 08:34:52 +1000 Subject: Rename FontNames to UniqueStringSet and move into UniqueString. It may be useful in more situations than just font names. --- src/ViewStyle.cxx | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'src/ViewStyle.cxx') diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 148163bec..f507c5528 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -33,32 +33,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() { } -- cgit v1.2.3