From 1e46d2f6077ec1c46e71c6d26f861cf912a63677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 24 Mar 2014 10:23:11 +0000 Subject: [PATCH] coverity#735504 Logically dead code Change-Id: Idb3b2e4fe3ab67c65324de9625807808e1355cee --- svtools/source/control/calendar.cxx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/svtools/source/control/calendar.cxx b/svtools/source/control/calendar.cxx index fcb6f9c781d4..076bf4db2a4c 100644 --- a/svtools/source/control/calendar.cxx +++ b/svtools/source/control/calendar.cxx @@ -742,10 +742,6 @@ void Calendar::ImplDrawDate( long nX, long nY, if ( bFocus ) HideFocus(); - // get font - Font aOldFont = GetFont(); - bool bBoldFont = false; - // display background const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings(); if ( bSel || bBack ) @@ -794,9 +790,6 @@ void Calendar::ImplDrawDate( long nX, long nY, if( mbDropPos && maDropDate == Date( nDay, nMonth, nYear ) ) ImplInvertDropPos(); - - if ( bBoldFont ) - SetFont( aOldFont ); }