From 490d263f42b51368662f342cd1ccf56dce0010a4 Mon Sep 17 00:00:00 2001 From: bensaine Date: Wed, 22 Dec 2021 11:55:46 -0500 Subject: [PATCH] remove useless if --- nel/src/gui/view_text.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/nel/src/gui/view_text.cpp b/nel/src/gui/view_text.cpp index 5600c3564..d7795bfae 100644 --- a/nel/src/gui/view_text.cpp +++ b/nel/src/gui/view_text.cpp @@ -3120,8 +3120,6 @@ namespace NLGUI TextContext->setEmbolden (_Embolden); TextContext->setOblique (_Oblique); -#if 1 - UTextContext::CStringInfo si = TextContext->getStringInfo("XO"); float xoHeight = si.StringHeight; @@ -3160,36 +3158,6 @@ namespace NLGUI // if not set to "_", breaks item help window si = TextContext->getStringInfo("_"); _TabWidth = si.StringWidth; - -#else - - // Letter size - UTextContext::CStringInfo si = TextContext->getStringInfo(_FontSizingChars); - - // font generator changes unknown glyphs to dot '.'. use fallback if it looks odd - if (_FontSize > (si.StringHeight + si.StringLine)) - { - si = TextContext->getStringInfo(_FontSizingFallback); - } - - // add a padding of 1 pixel else the top will be truncated - _FontHeight = si.StringHeight + 1; - _FontLegHeight = si.StringLine; - - // Space width - si = TextContext->getStringInfo(" "); - _SpaceWidth = si.StringWidth; - - // Font Width - si = TextContext->getStringInfo("_"); - _FontWidth = si.StringWidth; - - // Tab Width (used for {Txx}) - // if not set to "_", breaks item help window - si = TextContext->getStringInfo("_"); - _TabWidth = si.StringWidth; - -#endif }