summaryrefslogtreecommitdiff
path: root/sax/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-01-13 09:36:46 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-01-13 23:02:37 +0000
commit612981fc8fd7a35d8112951e05e1b2cf0f5f1c08 (patch)
tree3256b4dffb2d9d7e7ab543e98e2936b38041e9c1 /sax/source
parent62188aac68b30affbe144f8bd06f346f0e749cf9 (diff)
callcatcher: update and remove newly unused code
Change-Id: Iff3ce7c3a44010b3bc81fc0d2156216ee13948dc
Diffstat (limited to 'sax/source')
-rw-r--r--sax/source/tools/converter.cxx20
1 files changed, 0 insertions, 20 deletions
diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx
index e7fff9ae6e9c..6293c8505933 100644
--- a/sax/source/tools/converter.cxx
+++ b/sax/source/tools/converter.cxx
@@ -495,26 +495,6 @@ bool Converter::convertColor( sal_Int32& rColor, const OUString& rValue )
return true;
}
-/** convert string to rgba color */
-bool Converter::convertColor( sal_Int32& rColor, const OUString& rValue, const double alpha)
-{
- if( rValue.getLength() != 7 || rValue[0] != '#' )
- return false;
-
- rColor = (int) (alpha * 255);
- rColor <<= 8;
-
- rColor |= lcl_gethex( rValue[1] ) * 16 + lcl_gethex( rValue[2] );
- rColor <<= 8;
-
- rColor |= ( lcl_gethex( rValue[3] ) * 16 + lcl_gethex( rValue[4] ) );
- rColor <<= 8;
-
- rColor |= ( lcl_gethex( rValue[5] ) * 16 + lcl_gethex( rValue[6] ) );
-
- return true;
-}
-
static sal_Char aHexTab[] = "0123456789abcdef";
/** convert color to string */