forked from qt-creator/qt-creator
Utils: Remove now-unused Environment::findAllInPath
Change-Id: I562309c292ab0c5ae317593e40e5105bbcf89bf8 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -319,25 +319,6 @@ FilePath Environment::searchInPath(const QString &executable,
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
FilePaths Environment::findAllInPath(const QString &executable,
|
|
||||||
const FilePaths &additionalDirs,
|
|
||||||
const FilePathPredicate &func) const
|
|
||||||
{
|
|
||||||
QSet<FilePath> result;
|
|
||||||
searchInDirectoriesHelper(
|
|
||||||
[&result](const FilePath &path) {
|
|
||||||
result.insert(path);
|
|
||||||
return IterationPolicy::Continue;
|
|
||||||
},
|
|
||||||
*this,
|
|
||||||
executable,
|
|
||||||
additionalDirs,
|
|
||||||
func,
|
|
||||||
true);
|
|
||||||
|
|
||||||
return result.values();
|
|
||||||
}
|
|
||||||
|
|
||||||
FilePaths Environment::path() const
|
FilePaths Environment::path() const
|
||||||
{
|
{
|
||||||
return pathListValue("PATH");
|
return pathListValue("PATH");
|
||||||
|
|||||||
@@ -61,9 +61,6 @@ public:
|
|||||||
FilePath searchInPath(const QString &executable,
|
FilePath searchInPath(const QString &executable,
|
||||||
const FilePaths &additionalDirs = FilePaths(),
|
const FilePaths &additionalDirs = FilePaths(),
|
||||||
const FilePathPredicate &func = {}) const;
|
const FilePathPredicate &func = {}) const;
|
||||||
FilePaths findAllInPath(const QString &executable,
|
|
||||||
const FilePaths &additionalDirs = {},
|
|
||||||
const FilePathPredicate &func = {}) const;
|
|
||||||
|
|
||||||
FilePaths path() const;
|
FilePaths path() const;
|
||||||
FilePaths pathListValue(const QString &varName) const;
|
FilePaths pathListValue(const QString &varName) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user