Skip to content

Commit

Permalink
Clean up unused parameter/variable warnings from removing DataDirect.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Feb 27, 2019
1 parent 97c40cd commit 7f28a74
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 23 deletions.
10 changes: 0 additions & 10 deletions mythtv/libs/libmythtv/tv_play.cpp
Expand Up @@ -10492,16 +10492,6 @@ bool TV::HandleOSDChannelEdit(PlayerContext *ctx, QString action)
* \brief Automatically fills in as much information as possible.
*/
void TV::ChannelEditAutoFill(const PlayerContext *ctx, InfoMap &infoMap) const
{
QMap<QString,bool> dummy;
ChannelEditAutoFill(ctx, infoMap, dummy);
}

/** \fn TV::ChannelEditAutoFill(const PlayerContext*,InfoMap&,const QMap<QString,bool>&) const
* \brief Automatically fills in as much information as possible.
*/
void TV::ChannelEditAutoFill(const PlayerContext *ctx, InfoMap &infoMap,
const QMap<QString,bool> &changed) const
{
const QString keys[4] = { "XMLTV", "callsign", "channame", "channum", };

Expand Down
2 changes: 0 additions & 2 deletions mythtv/libs/libmythtv/tv_play.h
Expand Up @@ -692,8 +692,6 @@ class MTV_PUBLIC TV : public QObject, public MenuItemDisplayer
void StartChannelEditMode(PlayerContext*);
bool HandleOSDChannelEdit(PlayerContext*, QString action);
void ChannelEditAutoFill(const PlayerContext*, InfoMap&) const;
void ChannelEditAutoFill(const PlayerContext*, InfoMap&,
const QMap<QString,bool>&) const;
void ChannelEditXDSFill(const PlayerContext*, InfoMap&) const;

// General dialog handling
Expand Down
6 changes: 3 additions & 3 deletions mythtv/programs/mythbackend/services/channel.cpp
Expand Up @@ -357,9 +357,9 @@ bool Channel::RemoveVideoSource( uint nSourceID )
//
/////////////////////////////////////////////////////////////////////////////

DTC::LineupList* Channel::GetDDLineupList( const QString &sSource,
const QString &sUserId,
const QString &sPassword )
DTC::LineupList* Channel::GetDDLineupList( const QString &/*sSource*/,
const QString &/*sUserId*/,
const QString &/*sPassword*/ )
{
DTC::LineupList *pLineups = new DTC::LineupList();
return pLineups;
Expand Down
6 changes: 3 additions & 3 deletions mythtv/programs/mythbackend/services/channel.h
Expand Up @@ -118,9 +118,9 @@ class Channel : public ChannelServices

bool RemoveVideoSource ( uint SourceID ) override; // ChannelServices

DTC::LineupList* GetDDLineupList ( const QString &Source,
const QString &UserId,
const QString &Password ) override; // ChannelServices
DTC::LineupList* GetDDLineupList ( const QString &/*Source*/,
const QString &/*UserId*/,
const QString &/*Password*/ ) override; // ChannelServices

int FetchChannelsFromSource( const uint SourceId,
const uint CardId,
Expand Down
5 changes: 2 additions & 3 deletions mythtv/programs/mythfilldatabase/filldata.cpp
Expand Up @@ -109,7 +109,7 @@ bool FillData::GrabDataFromFile(int id, QString &filename)
return true;
}

bool FillData::GrabData(Source source, int offset, QDate *qCurrentDate)
bool FillData::GrabData(Source source, int offset)
{
QString xmltv_grabber = source.xmltvgrabber;

Expand Down Expand Up @@ -242,7 +242,6 @@ bool FillData::Run(SourceList &sourcelist)

m_need_post_grab_proc = false;
int nonewdata = 0;
bool has_dd_source = false;

for (it = sourcelist.begin(); it != sourcelist.end(); ++it)
{
Expand Down Expand Up @@ -614,7 +613,7 @@ bool FillData::Run(SourceList &sourcelist)
{
LOG(VB_GENERAL, LOG_NOTICE,
QString("Refreshing data for ") + currDate);
if (!GrabData(*it, i, &qCurrentDate))
if (!GrabData(*it, i))
{
++failures;
if (!m_fatalErrors.empty() || m_interrupted)
Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythfilldatabase/filldata.h
Expand Up @@ -50,7 +50,7 @@ class FillData
void SetRefresh(int day, bool set);

bool GrabDataFromFile(int id, QString &filename);
bool GrabData(Source source, int offset, QDate *qCurrentDate = nullptr);
bool GrabData(Source source, int offset);
bool Run(SourceList &sourcelist);

enum
Expand Down
1 change: 0 additions & 1 deletion mythtv/programs/mythfilldatabase/main.cpp
Expand Up @@ -48,7 +48,6 @@ int main(int argc, char *argv[])
{
FillData fill_data;
int fromfile_id = 1;
int fromfile_offset = 0;
QString fromfile_name;
bool from_file = false;
bool mark_repeats = true;
Expand Down

0 comments on commit 7f28a74

Please sign in to comment.