diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-03-23 21:35:27 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2013-03-23 20:49:56 +0000 |
commit | 43de68a43f96112e14f6f83e9129e22cc0e4bcc4 (patch) | |
tree | 89a2918d1d915ba852fd3da47c3891493715b6f8 /sal | |
parent | cleanup Library_merged (diff) | |
download | core-43de68a43f96112e14f6f83e9129e22cc0e4bcc4.tar.gz core-43de68a43f96112e14f6f83e9129e22cc0e4bcc4.zip |
coverity#704247 Logically dead code
Change-Id: Iaefddeb816d36d4a07234d903fafab3d6b83e1d2
Reviewed-on: https://gerrit.libreoffice.org/2952
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Reviewed-by: Thorsten Behrens <tbehrens@suse.com>
Tested-by: Thorsten Behrens <tbehrens@suse.com>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/rtl/strtmpl.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sal/rtl/strtmpl.cxx b/sal/rtl/strtmpl.cxx index 5f59795c0a34..69bd5ee18649 100644 --- a/sal/rtl/strtmpl.cxx +++ b/sal/rtl/strtmpl.cxx @@ -303,10 +303,7 @@ sal_Int32 SAL_CALL IMPL_RTL_STRNAME( hashCode_WithLength )( const IMPL_RTL_STRCO h = (h*39) + IMPL_RTL_USTRCODE( *pStr ); pStr++; - if ( nLen < 32 ) - nSkip = nLen / 4; - else - nSkip = nLen / 8; + nSkip = nLen / 8; nLen -= 8; while ( nLen > 0 ) { |