diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-01-13 09:36:46 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-01-13 23:02:37 +0000 |
commit | 612981fc8fd7a35d8112951e05e1b2cf0f5f1c08 (patch) | |
tree | 3256b4dffb2d9d7e7ab543e98e2936b38041e9c1 /sax | |
parent | 62188aac68b30affbe144f8bd06f346f0e749cf9 (diff) |
callcatcher: update and remove newly unused code
Change-Id: Iff3ce7c3a44010b3bc81fc0d2156216ee13948dc
Diffstat (limited to 'sax')
-rw-r--r-- | sax/inc/sax/tools/converter.hxx | 5 | ||||
-rw-r--r-- | sax/source/tools/converter.cxx | 20 |
2 files changed, 0 insertions, 25 deletions
diff --git a/sax/inc/sax/tools/converter.hxx b/sax/inc/sax/tools/converter.hxx index 8b84feb5c984..30aaea614bf6 100644 --- a/sax/inc/sax/tools/converter.hxx +++ b/sax/inc/sax/tools/converter.hxx @@ -99,11 +99,6 @@ public: static bool convertColor( sal_Int32& rColor, const ::rtl::OUString&rValue ); - /** convert string to argb color */ - static bool convertColor( sal_Int32& rColor, - const ::rtl::OUString&rValue, - const double alpha); - /** convert color to string */ static void convertColor( ::rtl::OUStringBuffer &rBuffer, sal_Int32 nColor ); 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 */ |