forked from qt-creator/qt-creator
Utils: Remove Environment::searchInDirectories
Was functionally replaced by FilePath::searchInDirectories. Change-Id: I8808cbdb114fb9b6b4e1f94e13aa9e67b9c56d6a Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -300,25 +300,6 @@ static void searchInDirectoriesHelper(const SearchResultCallback &resultCallback
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
FilePath Environment::searchInDirectories(const QString &executable,
|
|
||||||
const FilePaths &dirs,
|
|
||||||
const FilePathPredicate &func) const
|
|
||||||
{
|
|
||||||
FilePath result;
|
|
||||||
searchInDirectoriesHelper(
|
|
||||||
[&result](const FilePath &path) {
|
|
||||||
result = path;
|
|
||||||
return IterationPolicy::Stop;
|
|
||||||
},
|
|
||||||
*this,
|
|
||||||
executable,
|
|
||||||
dirs,
|
|
||||||
func,
|
|
||||||
false);
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
FilePath Environment::searchInPath(const QString &executable,
|
FilePath Environment::searchInPath(const QString &executable,
|
||||||
const FilePaths &additionalDirs,
|
const FilePaths &additionalDirs,
|
||||||
const FilePathPredicate &func) const
|
const FilePathPredicate &func) const
|
||||||
|
|||||||
@@ -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;
|
||||||
FilePath searchInDirectories(const QString &executable,
|
|
||||||
const FilePaths &dirs,
|
|
||||||
const FilePathPredicate &func = {}) const;
|
|
||||||
FilePaths findAllInPath(const QString &executable,
|
FilePaths findAllInPath(const QString &executable,
|
||||||
const FilePaths &additionalDirs = {},
|
const FilePaths &additionalDirs = {},
|
||||||
const FilePathPredicate &func = {}) const;
|
const FilePathPredicate &func = {}) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user