forked from qt-creator/qt-creator
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:
@@ -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());
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user