summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@libreoffice.org>2023-08-01 18:16:15 +0300
committerخالد حسني <khaled@libreoffice.org>2023-08-02 11:57:34 +0200
commitaa53ccd834adcd4dde36dcf36b620984b18711b3 (patch)
tree88deee4f8187f123680eb0a521555999a7d05179 /vcl
parentb3911f617d6af1e4fa7a3ed47ff6b85502d8066b (diff)
vcl: Drop unused PhysicalFontFamily::GetAliasNames()
Change-Id: Ide306f0656230460f976daef0ed213f734136030 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155167 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/font/PhysicalFontFamily.hxx2
-rw-r--r--vcl/qa/cppunit/physicalfontfamily.cxx4
-rw-r--r--vcl/source/font/PhysicalFontFamily.cxx1
3 files changed, 0 insertions, 7 deletions
diff --git a/vcl/inc/font/PhysicalFontFamily.hxx b/vcl/inc/font/PhysicalFontFamily.hxx
index bcb8c9dedbb9..c5e38a293488 100644
--- a/vcl/inc/font/PhysicalFontFamily.hxx
+++ b/vcl/inc/font/PhysicalFontFamily.hxx
@@ -74,7 +74,6 @@ public:
const OUString& GetFamilyName() const { return maFamilyName; }
const OUString& GetSearchName() const { return maSearchName; }
- const OUString& GetAliasNames() const { return maMapNames; }
int GetMinQuality() const { return mnMinQuality; }
FontTypeFaces GetTypeFaces() const { return mnTypeFaces; }
@@ -99,7 +98,6 @@ private:
OUString maFamilyName; // original font family name
OUString maSearchName; // normalized font family name
- OUString maMapNames; // fontname aliases
FontTypeFaces mnTypeFaces; // Typeface Flags
FontFamily meFamily;
FontPitch mePitch;
diff --git a/vcl/qa/cppunit/physicalfontfamily.cxx b/vcl/qa/cppunit/physicalfontfamily.cxx
index 8b771822c6db..d54ce8be6a1e 100644
--- a/vcl/qa/cppunit/physicalfontfamily.cxx
+++ b/vcl/qa/cppunit/physicalfontfamily.cxx
@@ -52,7 +52,6 @@ void VclPhysicalFontFamilyTest::testCreateFontFamily()
CPPUNIT_ASSERT_EQUAL_MESSAGE("Family name", OUString(""), aFamily.GetFamilyName());
CPPUNIT_ASSERT_EQUAL_MESSAGE("Search name", OUString("Test font face"),
aFamily.GetSearchName());
- CPPUNIT_ASSERT_EQUAL_MESSAGE("Alias names", OUString(""), aFamily.GetAliasNames());
CPPUNIT_ASSERT_EQUAL_MESSAGE("Min quality", -1, aFamily.GetMinQuality());
CPPUNIT_ASSERT_EQUAL_MESSAGE("Type faces", FontTypeFaces::NONE, aFamily.GetTypeFaces());
@@ -71,7 +70,6 @@ void VclPhysicalFontFamilyTest::testAddFontFace_Default()
CPPUNIT_ASSERT_EQUAL_MESSAGE("Family name", OUString(""), aFamily.GetFamilyName());
CPPUNIT_ASSERT_EQUAL_MESSAGE("Search name", OUString("Test font face"),
aFamily.GetSearchName());
- CPPUNIT_ASSERT_EQUAL_MESSAGE("Alias names", OUString(""), aFamily.GetAliasNames());
CPPUNIT_ASSERT_EQUAL_MESSAGE("Min quality", 0, aFamily.GetMinQuality());
FontTypeFaces eTypeFace
= FontTypeFaces::Scalable | FontTypeFaces::NoneSymbol | FontTypeFaces::NoneItalic;
@@ -98,7 +96,6 @@ void VclPhysicalFontFamilyTest::testAddOneFontFace()
aFamily.GetFamilyName());
CPPUNIT_ASSERT_EQUAL_MESSAGE("Search name", OUString("Test font face"),
aFamily.GetSearchName());
- CPPUNIT_ASSERT_EQUAL_MESSAGE("Alias names", OUString("Alias name"), aFamily.GetAliasNames());
CPPUNIT_ASSERT_EQUAL_MESSAGE("Min quality", 10, aFamily.GetMinQuality());
FontTypeFaces eTypeFace = FontTypeFaces::Scalable | FontTypeFaces::NoneSymbol
| FontTypeFaces::Bold | FontTypeFaces::NoneItalic;
@@ -136,7 +133,6 @@ void VclPhysicalFontFamilyTest::testAddTwoFontFaces()
aFamily.GetFamilyName());
CPPUNIT_ASSERT_EQUAL_MESSAGE("Search name", OUString("Test font face"),
aFamily.GetSearchName());
- CPPUNIT_ASSERT_EQUAL_MESSAGE("Alias names", OUString("Alias name"), aFamily.GetAliasNames());
CPPUNIT_ASSERT_EQUAL_MESSAGE("Min quality", 5, aFamily.GetMinQuality());
FontTypeFaces eTypeFace = FontTypeFaces::Scalable | FontTypeFaces::NoneSymbol
| FontTypeFaces::Light | FontTypeFaces::Bold
diff --git a/vcl/source/font/PhysicalFontFamily.cxx b/vcl/source/font/PhysicalFontFamily.cxx
index 16bb35c50100..6956394a5912 100644
--- a/vcl/source/font/PhysicalFontFamily.cxx
+++ b/vcl/source/font/PhysicalFontFamily.cxx
@@ -113,7 +113,6 @@ void PhysicalFontFamily::AddFontFace( PhysicalFontFace* pNewFontFace )
if( maFontFaces.empty() )
{
maFamilyName = pNewFontFace->GetFamilyName();
- maMapNames = pNewFontFace->GetMapNames();
meFamily = pNewFontFace->GetFamilyType();
mePitch = pNewFontFace->GetPitch();
mnMinQuality = pNewFontFace->GetQuality();