mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
update.cpp: remove unused variable
This commit is contained in:
@@ -283,7 +283,6 @@ bool CFlashUpdate::selectHttpImage(void)
|
|||||||
if (httpTool.downloadFile(url, gTmpPath LIST_OF_UPDATES_LOCAL_FILENAME, 20))
|
if (httpTool.downloadFile(url, gTmpPath LIST_OF_UPDATES_LOCAL_FILENAME, 20))
|
||||||
{
|
{
|
||||||
std::ifstream in(gTmpPath LIST_OF_UPDATES_LOCAL_FILENAME);
|
std::ifstream in(gTmpPath LIST_OF_UPDATES_LOCAL_FILENAME);
|
||||||
bool enabled;
|
|
||||||
CMenuForwarder *mf;
|
CMenuForwarder *mf;
|
||||||
while (in >> url >> version >> md5 >> std::ws)
|
while (in >> url >> version >> md5 >> std::ws)
|
||||||
{
|
{
|
||||||
@@ -293,7 +292,6 @@ bool CFlashUpdate::selectHttpImage(void)
|
|||||||
names.push_back(name);
|
names.push_back(name);
|
||||||
//std::getline(in, md5);
|
//std::getline(in, md5);
|
||||||
md5s.push_back(md5);
|
md5s.push_back(md5);
|
||||||
enabled = true;
|
|
||||||
|
|
||||||
CFlashVersionInfo versionInfo(versions[i]);
|
CFlashVersionInfo versionInfo(versions[i]);
|
||||||
newVer = versionInfo.getVersion();
|
newVer = versionInfo.getVersion();
|
||||||
@@ -319,7 +317,7 @@ bool CFlashUpdate::selectHttpImage(void)
|
|||||||
separator = true;
|
separator = true;
|
||||||
}
|
}
|
||||||
CUpdateMenuTarget *up = new CUpdateMenuTarget(i, &selected);
|
CUpdateMenuTarget *up = new CUpdateMenuTarget(i, &selected);
|
||||||
mf = new CMenuDForwarder(descriptions[i].c_str(), enabled, names[i].c_str(), up);
|
mf = new CMenuDForwarder(descriptions[i].c_str(), true, names[i].c_str(), up);
|
||||||
//mf->setHint(NEUTRINO_ICON_HINT_SW_UPDATE, "");
|
//mf->setHint(NEUTRINO_ICON_HINT_SW_UPDATE, "");
|
||||||
SelectionWidget.addItem(mf, i == 0); // first entry is preselected
|
SelectionWidget.addItem(mf, i == 0); // first entry is preselected
|
||||||
i++;
|
i++;
|
||||||
|
Reference in New Issue
Block a user