coverity#735504 Logically dead code

Change-Id: Idb3b2e4fe3ab67c65324de9625807808e1355cee
This commit is contained in:
Caolán McNamara
2014-03-24 10:23:11 +00:00
parent e05e38cbea
commit 1e46d2f607

View File

@@ -742,10 +742,6 @@ void Calendar::ImplDrawDate( long nX, long nY,
if ( bFocus ) if ( bFocus )
HideFocus(); HideFocus();
// get font
Font aOldFont = GetFont();
bool bBoldFont = false;
// display background // display background
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings(); const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
if ( bSel || bBack ) if ( bSel || bBack )
@@ -794,9 +790,6 @@ void Calendar::ImplDrawDate( long nX, long nY,
if( mbDropPos && maDropDate == Date( nDay, nMonth, nYear ) ) if( mbDropPos && maDropDate == Date( nDay, nMonth, nYear ) )
ImplInvertDropPos(); ImplInvertDropPos();
if ( bBoldFont )
SetFont( aOldFont );
} }