refs #584, removed unused function

* fixed define in the same step
This commit is contained in:
Klaus Basan
2016-01-29 21:22:52 +01:00
parent 5954d154cc
commit e1e922cbb1
4 changed files with 2 additions and 13 deletions

View File

@@ -14,7 +14,6 @@ using namespace BlackCore;
namespace BlackGui
{
CLoginModeButtons::CLoginModeButtons(QWidget *parent) :
QGroupBox(parent),
ui(new Ui::CLoginModeButtons)

View File

@@ -9,8 +9,8 @@
//! \file
#ifndef BLACKMISC_LOGINMODEBUTTONS_H
#define BLACKMISC_LOGINMODEBUTTONS_H
#ifndef BLACKGUI_LOGINMODEBUTTONS_H
#define BLACKGUI_LOGINMODEBUTTONS_H
#include "blackgui/blackguiexport.h"
#include "blackcore/network.h"
@@ -43,7 +43,6 @@ namespace BlackGui
private:
QScopedPointer<Ui::CLoginModeButtons> ui;
};
}
#endif // guard

View File

@@ -72,9 +72,3 @@ uint BlackMisc::calculateHash(const QList<int> &values, const char *className)
}
return calculateHash(list, className);
}
const QString &BlackMisc::localHostNameEnvVariable()
{
static const QString hostName = QProcessEnvironment::systemEnvironment().value("COMPUTERNAME", QProcessEnvironment::systemEnvironment().value("HOSTNAME"));
return hostName;
}

View File

@@ -151,9 +151,6 @@ namespace BlackMisc
//! Hash value, but with int list
BLACKMISC_EXPORT uint calculateHash(const QList<int> &values, const char *className);
//! Get local host name env.variable
BLACKMISC_EXPORT const QString &localHostNameEnvVariable();
//! Own implementation of std::make_unique, a C++14 feature not provided by GCC in C++11 mode
template<typename T, typename... Args>
std::unique_ptr<T> make_unique(Args &&... args)