From 2e151da069a2172e1458f9e7cc689ef34de4fbec Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 18 Apr 2013 18:09:32 +0200 Subject: [PATCH] channellist: remove some unneeded calculations Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/e07e2e526447b148c193946de3eadc7c6c59b5d1 Author: vanhofen Date: 2013-04-18 (Thu, 18 Apr 2013) Origin message was: ------------------ - channellist: remove some unneeded calculations ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/channellist.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index dfd132621..d67a5c82f 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -518,23 +518,6 @@ void CChannelList::calcSize() const int pic_h = 39; theight = std::max(theight, pic_h); - int icol_w, icol_h; - frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_HELP, &icol_w, &icol_h); - theight = std::max(theight, icol_h); - - frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_MENU, &icol_w, &icol_h); - theight = std::max(theight, icol_h); - -#if 0 - if(new_zap_mode) - { - frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_MUTE_ZAP_ACTIVE, &icol_w, &icol_h); - theight = std::max(theight, icol_h); - } -#endif - // calculate max entrys in mainbox - listmaxshow = (height - theight - footerHeight) / fheight; - // calculate max entrys in mainbox listmaxshow = (height - theight - footerHeight) / fheight;