From aa53ccd834adcd4dde36dcf36b620984b18711b3 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Tue, 1 Aug 2023 18:16:15 +0300 Subject: vcl: Drop unused PhysicalFontFamily::GetAliasNames() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ide306f0656230460f976daef0ed213f734136030 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155167 Tested-by: Jenkins Reviewed-by: خالد حسني --- vcl/inc/font/PhysicalFontFamily.hxx | 2 -- vcl/qa/cppunit/physicalfontfamily.cxx | 4 ---- vcl/source/font/PhysicalFontFamily.cxx | 1 - 3 files changed, 7 deletions(-) (limited to 'vcl') 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(); -- cgit