diff options
author | Katja Marttila <katja.marttila@qt.io> | 2020-09-30 15:27:57 +0300 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2020-11-04 10:07:47 +0300 |
commit | d3cae4df15598bf4797cd7fc03aced50bb5a25a1 (patch) | |
tree | d5889d6dc6bb99702eeec61337ba0544e94ff071 /src/libs/installer/fileutils.cpp | |
parent | 07f4848b5ee0cdc9407d9a0de4d30ca5e03403e0 (diff) |
Remove unused code blocks and functions
Results analyzed using cppcheck tools.
Also add Q_DECL_OVERRIDE to overwrited functions.
Change-Id: Iab5eb43206af0050c1dd84efb7ed860ab9594496
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'src/libs/installer/fileutils.cpp')
-rw-r--r-- | src/libs/installer/fileutils.cpp | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/src/libs/installer/fileutils.cpp b/src/libs/installer/fileutils.cpp index d0dd342a8..61891832e 100644 --- a/src/libs/installer/fileutils.cpp +++ b/src/libs/installer/fileutils.cpp @@ -1,6 +1,6 @@ /************************************************************************** ** -** Copyright (C) 2017 The Qt Company Ltd. +** Copyright (C) 2020 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Installer Framework. @@ -97,28 +97,6 @@ void TempDirDeleter::add(const QStringList &paths) m_paths += paths.toSet(); } -void TempDirDeleter::releaseAll() -{ - m_paths.clear(); -} - -void TempDirDeleter::release(const QString &path) -{ - m_paths.remove(path); -} - -void TempDirDeleter::passAndReleaseAll(TempDirDeleter &tdd) -{ - tdd.m_paths = m_paths; - releaseAll(); -} - -void TempDirDeleter::passAndRelease(TempDirDeleter &tdd, const QString &path) -{ - tdd.add(path); - release(path); -} - void TempDirDeleter::releaseAndDeleteAll() { foreach (const QString &path, m_paths) |