diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-11-08 14:11:11 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-11-08 11:21:08 -0800 |
commit | 3519b75e4ac87d09ceec52abc746b66c3df59967 (patch) | |
tree | a890de19ad24ef7210240d494faca713121cf336 /subsurfacesysinfo.cpp | |
parent | df42f78486cd42ff48c13d9e96fe7cc33fde1887 (diff) | |
download | subsurface-3519b75e4ac87d09ceec52abc746b66c3df59967.tar.gz |
Remove unused unquote function
In previous version of subsurfacesysinfo.cpp which came straight form Qt
the unquote function was used to clean strings.
Since f59b30ca5ad7 ("OS Detection: Use QFile when reading
/etc/os-release") its not needed any longer so this removes that
function.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurfacesysinfo.cpp')
-rw-r--r-- | subsurfacesysinfo.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/subsurfacesysinfo.cpp b/subsurfacesysinfo.cpp index 4093654ee..2458d2880 100644 --- a/subsurfacesysinfo.cpp +++ b/subsurfacesysinfo.cpp @@ -224,16 +224,6 @@ struct QUnixOSVersion #ifdef USE_ETC_OS_RELEASE -static QString unquote(const char *begin, const char *end) -{ - if (*begin == '"') { - Q_ASSERT(end[-1] == '"'); - return QString::fromLatin1(begin + 1, end - begin - 2); - } - return QString::fromLatin1(begin, end - begin); -} - - static bool readEtcOsRelease(QUnixOSVersion &v) { QFile osRelease("/etc/os-release"); |