Commit 16541f89 authored by Pekka Vuorela's avatar Pekka Vuorela

Remove some unused methods, variables, parameters

parent 35dba2bc
......@@ -432,10 +432,8 @@ void Ssu::sendRegistration(QString usernameDomain, QString password)
ssuLog->print(LOG_DEBUG, QString("Sending request to %1")
.arg(request.url().url()));
QNetworkReply *reply;
pendingRequests++;
reply = manager->post(request, form.query(QUrl::FullyEncoded).toStdString().c_str());
manager->post(request, form.query(QUrl::FullyEncoded).toStdString().c_str());
// we could expose downloadProgress() from reply in case we want progress info
QString homeUrl = settings->value("home-url").toString().arg(username);
......
......@@ -148,8 +148,6 @@ QString SsuDeviceInfo::deviceVariant(bool fallback)
if (!cachedVariant.isEmpty())
return cachedVariant;
cachedVariant = "";
if (boardMappings->contains("variants/" + deviceModel())) {
cachedVariant = boardMappings->value("variants/" + deviceModel()).toString();
}
......
......@@ -186,7 +186,6 @@ void SsuCli::optModel(QStringList opt)
void SsuCli::optModifyRepo(enum Actions action, QStringList opt)
{
SsuRepoManager repoManager;
QTextStream qout(stdout);
QTextStream qerr(stderr);
if (opt.count() == 3) {
......@@ -684,14 +683,11 @@ void SsuCli::run()
usage();
}
void SsuCli::uidWarning(QString message)
void SsuCli::uidWarning()
{
if (message.isEmpty())
message = "Run 'ssu ur' as root to recreate repository files";
if (geteuid() != 0) {
QTextStream qout(stderr);
qout << "You're not root. " << message << endl;
qout << "You're not root. Run 'ssu ur' as root to recreate repository files" << endl;
}
}
......
......@@ -33,7 +33,7 @@ private:
QSettings settings;
int state;
void usage(QString message = "");
void uidWarning(QString message = "");
void uidWarning();
void optDomain(QStringList opt);
void optFlavour(QStringList opt);
void optMode(QStringList opt);
......
......@@ -59,7 +59,6 @@ public:
private:
Ssu ssu;
void error(QString message);
void printJournal(int priority, QString message);
bool writeZyppCredentialsIfNeeded(QString credentialsScope);
public slots:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment