mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Remove unused unquote function
In previous version of subsurfacesysinfo.cpp which came straight form Qt
the unquote function was used to clean strings.
Since f59b30ca5a
("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>
This commit is contained in:
parent
df42f78486
commit
3519b75e4a
1 changed files with 0 additions and 10 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue