Browse Source

Remove unused functions

adaptive-webui-19844
Chocobo1 6 years ago
parent
commit
401bdbf3d9
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 29
      src/base/utils/misc.cpp
  2. 9
      src/base/utils/misc.h

29
src/base/utils/misc.cpp

@ -28,9 +28,6 @@ @@ -28,9 +28,6 @@
#include "misc.h"
#include <boost/version.hpp>
#include <libtorrent/version.hpp>
#ifdef Q_OS_WIN
#include <windows.h>
#include <Shlobj.h>
@ -44,7 +41,9 @@ @@ -44,7 +41,9 @@
#include <CoreServices/CoreServices.h>
#endif
#include <boost/version.hpp>
#include <openssl/opensslv.h>
#include <libtorrent/version.hpp>
#include <QCoreApplication>
#include <QRegularExpression>
@ -361,30 +360,6 @@ QString Utils::Misc::getUserIDString() @@ -361,30 +360,6 @@ QString Utils::Misc::getUserIDString()
return uid;
}
QStringList Utils::Misc::toStringList(const QList<bool> &l)
{
QStringList ret;
for (const bool b : l)
ret << (b ? "1" : "0");
return ret;
}
QList<int> Utils::Misc::intListfromStringList(const QStringList &l)
{
QList<int> ret;
for (const QString &s : l)
ret << s.toInt();
return ret;
}
QList<bool> Utils::Misc::boolListfromStringList(const QStringList &l)
{
QList<bool> ret;
for (const QString &s : l)
ret << (s == "1");
return ret;
}
QString Utils::Misc::parseHtmlLinks(const QString &rawText)
{
QString result = rawText;

9
src/base/utils/misc.h

@ -36,9 +36,7 @@ @@ -36,9 +36,7 @@
#include <Windows.h>
#endif
#include <QString>
#include <QStringList>
class QString;
enum class ShutdownDialogAction;
/* Miscellaneous functions that can be useful */
@ -87,11 +85,6 @@ namespace Utils @@ -87,11 +85,6 @@ namespace Utils
QString userFriendlyDuration(qlonglong seconds);
QString getUserIDString();
// Convert functions
QStringList toStringList(const QList<bool> &l);
QList<int> intListfromStringList(const QStringList &l);
QList<bool> boolListfromStringList(const QStringList &l);
#ifdef Q_OS_WIN
QString windowsSystemPath();

Loading…
Cancel
Save