diff --git a/src/system/lastchannel.cpp b/src/system/lastchannel.cpp index 787c22c4b..2c0b7fd32 100644 --- a/src/system/lastchannel.cpp +++ b/src/system/lastchannel.cpp @@ -39,7 +39,7 @@ void CLastChannel::clear (void) // -- Store only if channel != last channel and time store delay is large enough // forceStoreToLastChannels default to false -void CLastChannel::store (int channel, t_channel_id channel_id, bool /* forceStoreToLastChannels */) +void CLastChannel::store (t_channel_id channel_id) { struct timeval tv; unsigned long lastTimestamp(0); @@ -58,7 +58,7 @@ void CLastChannel::store (int channel, t_channel_id channel_id, bool /* forceSto this->lastChannels.pop_front(); /* push new channel to the head */ - _LastCh newChannel = {channel, channel_id, tv.tv_sec, CNeutrinoApp::getInstance()->GetChannelMode()}; + _LastCh newChannel = {/*channel,*/ channel_id, tv.tv_sec, CNeutrinoApp::getInstance()->GetChannelMode()}; this->lastChannels.push_front(newChannel); diff --git a/src/system/lastchannel.h b/src/system/lastchannel.h index 0c281b1c5..47e041b19 100644 --- a/src/system/lastchannel.h +++ b/src/system/lastchannel.h @@ -32,7 +32,6 @@ class CLastChannel private: struct _LastCh { - int channel; t_channel_id channel_id; long int timestamp; int channel_mode; @@ -47,7 +46,7 @@ class CLastChannel public: CLastChannel (void); void clear (void); - void store (int channelnr, t_channel_id channel_id, bool forceStoreToLastChannels = false); + void store (t_channel_id channel_id); t_channel_id getlast (int n); unsigned int size () const; void clear_storedelay (void);