Commit e93f0c85 authored by Igor Kushnir's avatar Igor Kushnir

Remove empty ParseProjectJob::updateProgress()

Only RunController listens to ParseProjectJob::percent() signal (as it
does to any registered job's percent() signal) in order to update total
progress. Background Parser already reports parsing progress, so there
is no need to emit ParseProjectJob::percent(), and so it makes sense to
remove the empty updateProgress() function rather than implement it.

GIT_SILENT
parent f054f4da
......@@ -87,10 +87,6 @@ ParseProjectJob::ParseProjectJob(IProject* project, bool forceUpdate, bool parse
setObjectName(i18np("Process 1 file in %2", "Process %1 files in %2", d->filesToParse.size(), project->name()));
}
void ParseProjectJob::updateProgress()
{
}
void ParseProjectJob::updateReady(const IndexedString& url, const ReferencedTopDUContext& topContext)
{
Q_D(ParseProjectJob);
......@@ -98,9 +94,6 @@ void ParseProjectJob::updateReady(const IndexedString& url, const ReferencedTopD
Q_UNUSED(url);
Q_UNUSED(topContext);
++d->updated;
if (d->updated % ((d->filesToParse.size() / 100) + 1) == 0)
updateProgress();
if (d->updated >= d->filesToParse.size())
deleteLater();
}
......
......@@ -47,9 +47,6 @@ private Q_SLOTS:
void queueFilesToParse();
void updateReady(const KDevelop::IndexedString& url, const KDevelop::ReferencedTopDUContext& topContext);
private:
void updateProgress();
private:
const QScopedPointer<class ParseProjectJobPrivate> d_ptr;
Q_DECLARE_PRIVATE(ParseProjectJob)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment