refactor: misc cleanup

This commit is contained in:
tobtoht
2023-03-29 11:00:41 +02:00
parent 37153356ee
commit 32fa222c8d
7 changed files with 17 additions and 34 deletions
-9
View File
@@ -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()) {
-1
View File
@@ -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);