diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-25 13:42:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-25 17:03:49 +0000 |
commit | 960da63a9e0f84c4531399baa82df057084414e3 (patch) | |
tree | 6b0ad9b06477c444836ab34eacbe14104e4cd498 /sc | |
parent | 9104fbc571d5c81a30250a3b97c3dec1f1a55490 (diff) |
coverity#982303 Logically dead code
Change-Id: I45aca72d340295fcda04f9045f0c61b882722fd8
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/docsh8.cxx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/sc/source/ui/docshell/docsh8.cxx b/sc/source/ui/docshell/docsh8.cxx index 44dcbed876b9..de3ecf23470a 100644 --- a/sc/source/ui/docshell/docsh8.cxx +++ b/sc/source/ui/docshell/docsh8.cxx @@ -488,11 +488,6 @@ void lcl_GetColumnTypes( OUString* pColNames, sal_Int32* pColTypes, sal_Int32* pColLengths, sal_Int32* pColScales, bool& bHasMemo, rtl_TextEncoding eCharSet ) { - // updating of column titles didn't work in 5.2 and isn't always wanted - // (saving normally shouldn't modify the document) - //! read flag from configuration - bool bUpdateTitles = false; - ScDocument* pDoc = rDocShell.GetDocument(); SvNumberFormatter* pNumFmt = pDoc->GetFormatTable(); @@ -715,34 +710,6 @@ void lcl_GetColumnTypes( if ( bSdbLenBad && nFieldLen == 1 ) nFieldLen = 2; // THIS is reality } - if ( bUpdateTitles ) - { // Angabe anpassen und ausgeben - OUString aOutString = aFieldName; - switch ( nDbType ) - { - case sdbc::DataType::BIT : - aOutString += ",L"; - break; - case sdbc::DataType::DATE : - aOutString += ",D"; - break; - case sdbc::DataType::LONGVARCHAR : - aOutString += ",M"; - break; - case sdbc::DataType::VARCHAR : - aOutString += ",C," + OUString::number( nFieldLen ); - break; - case sdbc::DataType::DECIMAL : - aOutString += ",N," + OUString::number( nFieldLen ) + - "," + OUString::number( nPrecision ); - break; - } - if ( !aOutString.equalsIgnoreAsciiCase( aString ) ) - { - pDoc->SetString( nCol, nFirstRow, nTab, aOutString ); - rDocShell.PostPaint( nCol, nFirstRow, nTab, nCol, nFirstRow, nTab, PAINT_GRID ); - } - } ++nField; } } |