diff options
| author | hjk <[email protected]> | 2022-10-11 13:58:26 +0200 |
|---|---|---|
| committer | hjk <[email protected]> | 2022-10-12 08:59:32 +0000 |
| commit | b1471fe61fbf64c78fb7eef1a52f0b913541c85c (patch) | |
| tree | 5faed9514ddae1f2f7393bf783b0da9e3efa4e0a /src/plugins/docker/dockerdevice.cpp | |
| parent | 48755cf7fd88790be879b31bf7fbbf66b9238c98 (diff) | |
Utils: Combine some of the iterateWithFind overloads
Change-Id: I668447d0049f2e35cd0c76d2c5708779196167ec
Reviewed-by: hjk <[email protected]>
Reviewed-by: Marcus Tillmanns <[email protected]>
Diffstat (limited to 'src/plugins/docker/dockerdevice.cpp')
| -rw-r--r-- | src/plugins/docker/dockerdevice.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/plugins/docker/dockerdevice.cpp b/src/plugins/docker/dockerdevice.cpp index 87815a7b3fd..bcab94bcb8b 100644 --- a/src/plugins/docker/dockerdevice.cpp +++ b/src/plugins/docker/dockerdevice.cpp @@ -948,17 +948,8 @@ bool DockerDevice::ensureReachable(const FilePath &other) const } void DockerDevice::iterateDirectory(const FilePath &filePath, - const FilePath::IterateDirCallback &callBack, - const FileFilter &filter) const -{ - QTC_ASSERT(handlesFile(filePath), return); - auto runInShell = [this](const CommandLine &cmd) { return d->runInShell(cmd); }; - FileUtils::iterateUnixDirectory(filePath, filter, &d->m_useFind, runInShell, callBack); -} - -void DockerDevice::iterateDirectory(const FilePath &filePath, - const FilePath::IterateDirWithInfoCallback &callBack, - const FileFilter &filter) const + const FilePath::IterateDirCallback &callBack, + const FileFilter &filter) const { QTC_ASSERT(handlesFile(filePath), return); auto runInShell = [this](const CommandLine &cmd) { return d->runInShell(cmd); }; |
