From ab706f997d4b9758e317e28c791a645021fe7bd0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 9 Jan 2012 11:34:24 +0000 Subject: remove duplicate createHex --- sal/qa/rtl/cipher/rtl_cipher.cxx | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'sal/qa/rtl/cipher') diff --git a/sal/qa/rtl/cipher/rtl_cipher.cxx b/sal/qa/rtl/cipher/rtl_cipher.cxx index 346a44b3bdfd..a4d5bfb4c394 100644 --- a/sal/qa/rtl/cipher/rtl_cipher.cxx +++ b/sal/qa/rtl/cipher/rtl_cipher.cxx @@ -43,26 +43,6 @@ namespace rtl_cipher { -rtl::OString createHex(sal_uInt8 *_pKeyBuffer, sal_uInt32 _nKeyLen) -{ - // Create hex-value string from the value to keep the string size minimal - rtl::OStringBuffer aBuffer( _nKeyLen * 2 + 1 ); - for ( sal_uInt32 i = 0; i < _nKeyLen; i++ ) - { - sal_Int32 nValue = (sal_Int32)_pKeyBuffer[i]; - if (nValue < 16) // maximul hex value for 1 byte - { - sal_Int32 nil = sal_Int32(0); - aBuffer.append( nil, 16 /* radix */ ); - } - aBuffer.append( nValue, 16 /* radix */ ); - } - - return aBuffer.makeStringAndClear(); -} - -// ----------------------------------------------------------------------------- - class create : public CppUnit::TestFixture { public: -- cgit