Nim: Remove unneeded wrapper method

Change-Id: I12b6a42a0611342644b2ff448cd33cedd3eb6ec8
Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Bernhard Beschow
2020-09-03 15:51:57 +02:00
committed by hjk
parent 287196a008
commit 75c1b8d582
2 changed files with 1 additions and 7 deletions

View File

@@ -51,7 +51,7 @@ const char EXCLUDED_FILES_KEY[] = "ExcludedFiles";
NimProjectScanner::NimProjectScanner(Project *project)
: m_project(project)
{
setFilter([this](const Utils::MimeType &, const FilePath &fp) {
m_scanner.setFilter([this](const Utils::MimeType &, const FilePath &fp) {
const QString path = fp.toString();
return excludedFiles().contains(path)
|| path.endsWith(".nimproject")
@@ -113,11 +113,6 @@ void NimProjectScanner::saveSettings()
m_project->setNamedSettings(SETTINGS_KEY, settings);
}
void NimProjectScanner::setFilter(const TreeScanner::FileFilter &filter)
{
m_scanner.setFilter(filter);
}
void NimProjectScanner::startScan()
{
m_scanner.asyncScanForFiles(m_project->projectDirectory());

View File

@@ -44,7 +44,6 @@ class NimProjectScanner : public QObject
public:
explicit NimProjectScanner(ProjectExplorer::Project *project);
void setFilter(const ProjectExplorer::TreeScanner::FileFilter &filter);
void startScan();
void watchProjectFilePath();