Commit a1580bcc authored by Boudewijn Rempt's avatar Boudewijn Rempt

Remove KoApplication::documents()

The mnethod was only used in sheets, and the logic can be placed
there just as well.
parent 4d9230f1
......@@ -533,16 +533,6 @@ QList<KoPart*> KoApplication::partList() const
return d->partList;
}
int KoApplication::documents()
{
QSet<QString> nameList;
QList<KoPart*> parts = d->partList;
foreach(KoPart* part, parts) {
nameList.insert(part->document()->objectName());
}
return nameList.size();
}
QStringList KoApplication::mimeFilter(KoFilterManager::Direction direction) const
{
KoDocumentEntry entry = KoDocumentEntry::queryByMimeType(d->nativeMimeType);
......
......@@ -88,11 +88,6 @@ public:
QList<KoPart*> partList() const;
/**
* Get the number of currently open documents.
*/
int documents();
/**
* return a list of mimetypes this application supports.
*/
......
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