Skip to content

Commit

Permalink
CAddonDatabase: remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
tamland committed Mar 25, 2016
1 parent 6d79bb7 commit ec79f5d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
20 changes: 0 additions & 20 deletions xbmc/addons/AddonDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -902,26 +902,6 @@ bool CAddonDatabase::BreakAddon(const std::string &addonID, const std::string& r
addonID.c_str(), reason.c_str()));
}

bool CAddonDatabase::IsAddonDisabled(const std::string &addonID)
{
try
{
if (NULL == m_pDB.get()) return false;
if (NULL == m_pDS.get()) return false;

std::string sql = PrepareSQL("SELECT * FROM installed WHERE addonID='%s' AND enabled=0", addonID.c_str());
m_pDS->query(sql);
bool ret = !m_pDS->eof();
m_pDS->close();
return ret;
}
catch (...)
{
CLog::Log(LOGERROR, "%s failed on addon %s", __FUNCTION__, addonID.c_str());
}
return false;
}

bool CAddonDatabase::GetDisabled(std::set<std::string>& addons)
{
try
Expand Down
6 changes: 0 additions & 6 deletions xbmc/addons/AddonDatabase.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,6 @@ class CAddonDatabase : public CDatabase
\sa IsAddonDisabled, HasDisabledAddons */
bool DisableAddon(const std::string &addonID, bool disable = true);

/*! \brief Check whether an addon has been disabled via DisableAddon.
\param addonID id of the addon to check
\return true if the addon is disabled, false otherwise
\sa DisableAddon, HasDisabledAddons */
bool IsAddonDisabled(const std::string &addonID);

/*! \brief Mark an addon as broken
Sets a flag that this addon has been marked as broken in the repository.
\param addonID id of the addon to mark as broken
Expand Down

0 comments on commit ec79f5d

Please sign in to comment.