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 <gla...@acc.umu.se>
---
 subsurfacesysinfo.cpp | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/subsurfacesysinfo.cpp b/subsurfacesysinfo.cpp
index 4093654..2458d28 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");
-- 
1.9.1

_______________________________________________
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to