diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-09 11:34:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-09 13:28:38 +0000 |
commit | ab706f997d4b9758e317e28c791a645021fe7bd0 (patch) | |
tree | 38fa0e2ab684be0a764e3934476e32b90b1d8475 /sal/qa/rtl/cipher | |
parent | c8352a6c19489ba7e74d1bfbe0e94b783d9db580 (diff) |
remove duplicate createHex
Diffstat (limited to 'sal/qa/rtl/cipher')
-rw-r--r-- | sal/qa/rtl/cipher/rtl_cipher.cxx | 20 |
1 files changed, 0 insertions, 20 deletions
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: |