summaryrefslogtreecommitdiff
path: root/vcl/qa/cppunit
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-11-20 20:03:23 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-11-21 09:57:02 +0100
commitb98e2979af71d1f415a856be98839f321371804a (patch)
tree80e748a97ee10a7a7998fc813697b22d3e4335b0 /vcl/qa/cppunit
parent468277a0aec9a40f5d5f3db600088ae04a45e2c9 (diff)
drop effectively unused Font::IsSymbolFont
Change-Id: I717319dd3843aa7d73d0722967e80f7d07e98143 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143006 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/qa/cppunit')
-rw-r--r--vcl/qa/cppunit/font.cxx25
1 files changed, 0 insertions, 25 deletions
diff --git a/vcl/qa/cppunit/font.cxx b/vcl/qa/cppunit/font.cxx
index 24fd1c6126a1..25550a95f6b0 100644
--- a/vcl/qa/cppunit/font.cxx
+++ b/vcl/qa/cppunit/font.cxx
@@ -26,7 +26,6 @@ public:
void testItalic();
void testAlignment();
void testQuality();
- void testSymbolFlagAndCharSet();
void testEmphasisMarkShouldBePosAboveWhenSimplifiedChinese();
void testEmphasisMarkShouldBePosAboveWhenNotSimplifiedChinese();
void testEmphasisMarkInitAsNone();
@@ -43,7 +42,6 @@ public:
CPPUNIT_TEST(testItalic);
CPPUNIT_TEST(testAlignment);
CPPUNIT_TEST(testQuality);
- CPPUNIT_TEST(testSymbolFlagAndCharSet);
CPPUNIT_TEST(testEmphasisMarkShouldBePosAboveWhenSimplifiedChinese);
CPPUNIT_TEST(testEmphasisMarkShouldBePosAboveWhenNotSimplifiedChinese);
CPPUNIT_TEST(testEmphasisMarkInitAsNone);
@@ -135,29 +133,6 @@ void VclFontTest::testQuality()
CPPUNIT_ASSERT_EQUAL( int(50), aFont.GetQuality() );
}
-
-void VclFontTest::testSymbolFlagAndCharSet()
-{
- // default constructor should set scalable flag to false
- vcl::Font aFont;
-
- CPPUNIT_ASSERT_MESSAGE( "Should not be seen as a symbol font after default constructor called", !aFont.IsSymbolFont() );
- CPPUNIT_ASSERT_EQUAL_MESSAGE( "Character set should be RTL_TEXTENCODING_DONTKNOW after default constructor called",
- RTL_TEXTENCODING_DONTKNOW, aFont.GetCharSet() );
-
- aFont.SetCharSet( RTL_TEXTENCODING_SYMBOL );
-
- CPPUNIT_ASSERT_MESSAGE( "Test 1: Symbol font flag should be on", aFont.IsSymbolFont() );
- CPPUNIT_ASSERT_EQUAL_MESSAGE( "Test 1: Character set should be RTL_TEXTENCODING_SYMBOL",
- RTL_TEXTENCODING_SYMBOL, aFont.GetCharSet() );
-
- aFont.SetCharSet( RTL_TEXTENCODING_UNICODE );
-
- CPPUNIT_ASSERT_MESSAGE( "Test 2: Symbol font flag should be off", !aFont.IsSymbolFont() );
- CPPUNIT_ASSERT_EQUAL_MESSAGE( "Test 2: Character set should be RTL_TEXTENCODING_UNICODE",
- RTL_TEXTENCODING_UNICODE, aFont.GetCharSet() );
-}
-
void VclFontTest::testEmphasisMarkShouldBePosAboveWhenSimplifiedChinese()
{
vcl::Font aFont;