diff options
author | Soeren Moch <smoch@web.de> | 2021-02-13 14:03:29 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-02-16 11:51:49 +0100 |
commit | 1e9345336c9e714c37495352ad37a67f72e6a7a2 (patch) | |
tree | b56157726b1b526eef132bf4d6501c3ca94c665e | |
parent | 52b25fa9d45bb50d476c3d9e4aad78b9d87ed990 (diff) | |
download | skin-nopacity-1e9345336c9e714c37495352ad37a67f72e6a7a2.tar.gz skin-nopacity-1e9345336c9e714c37495352ad37a67f72e6a7a2.tar.bz2 |
Cleanup optimized DisplayChannel
We unconditionally create a channelView in the constructor, no need to check
its presence.
Signed-off-by: Soeren Moch <smoch@web.de>
-rw-r--r-- | displaychannel.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/displaychannel.c b/displaychannel.c index 84257db..3d4eed8 100644 --- a/displaychannel.c +++ b/displaychannel.c @@ -30,14 +30,10 @@ cNopacityDisplayChannel::~cNopacityDisplayChannel() { Cancel(-1); while (Active()) cCondWait::SleepMs(10); - if (channelView) - delete channelView; + delete channelView; } void cNopacityDisplayChannel::SetChannel(const cChannel *Channel, int Number) { - if (!channelView) - return; - channelChange = true; groupSep = false; @@ -77,8 +73,6 @@ void cNopacityDisplayChannel::SetChannel(const cChannel *Channel, int Number) { } void cNopacityDisplayChannel::SetEvents(const cEvent *Present, const cEvent *Following) { - if (!channelView) - return; present = Present; following = Following; channelView->ClearProgressBar(); @@ -103,8 +97,6 @@ void cNopacityDisplayChannel::SetProgressBar(const cEvent *present) { void cNopacityDisplayChannel::SetMessage(eMessageType Type, const char *Text) { - if (!channelView) - return; channelView->ClearChannelLogo(); channelView->ClearChannelName(); channelView->ClearEPGInfo(); @@ -117,8 +109,6 @@ void cNopacityDisplayChannel::SetMessage(eMessageType Type, const char *Text) { } void cNopacityDisplayChannel::Flush(void) { - if (!channelView) - return; if (initial || channelChange) channelView->DrawDate(); |