mirror of
https://github.com/wownero/wowlet.git
synced 2026-12-04 05:54:01 +01:00
refactor: misc cleanup
This commit is contained in:
@@ -556,15 +556,6 @@ QString barrayToString(const QByteArray &data) {
|
||||
return QString::fromUtf8(data);
|
||||
}
|
||||
|
||||
QString getAccountName() {
|
||||
QString accountName = qgetenv("USER"); // mac/linux
|
||||
if (accountName.isEmpty())
|
||||
accountName = qgetenv("USERNAME"); // Windows
|
||||
if (accountName.isEmpty())
|
||||
throw std::runtime_error("Could derive system account name from env vars: USER or USERNAME");
|
||||
return accountName;
|
||||
}
|
||||
|
||||
QFont getMonospaceFont()
|
||||
{
|
||||
if (QFontInfo(QApplication::font()).fixedPitch()) {
|
||||
|
||||
@@ -67,7 +67,6 @@ namespace Utils
|
||||
|
||||
void applicationLogHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg);
|
||||
QString barrayToString(const QByteArray &data);
|
||||
QString getAccountName();
|
||||
|
||||
bool isLocalUrl(const QUrl &url);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user