[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdesupport/strigi/src/daemon
From:       Jos van den Oever <jos () vandenoever ! info>
Date:       2007-09-24 20:39:37
Message-ID: 1190666377.741712.26356.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 716524 by vandenoever:

remove a function that scales very badly by design

 M  +0 -10     interface.cpp  
 M  +0 -1      interface.h  


--- trunk/kdesupport/strigi/src/daemon/interface.cpp #716523:716524
@@ -129,16 +129,6 @@
 Interface::getFilters() {
     return scheduler.getIndexerConfiguration().filters();
 }
-set<string>
-Interface::getIndexedFiles() {
-    map<string, time_t> indexedfiles = manager.indexReader()->files(0);
-    set<string> r;
-
-    for (map<string, time_t>::iterator iter = indexedfiles.begin(); iter != indexedfiles.end(); iter++)
-        r.insert (iter->first);
-
-    return r;
-}
 void
 Interface::indexFile(const string &path, uint64_t mtime,
         const vector<char>& content) {
--- trunk/kdesupport/strigi/src/daemon/interface.h #716523:716524
@@ -53,7 +53,6 @@
     void setFilteringRules(const std::multimap<int, std::string>&);
     void setFilters(const std::vector<std::pair<bool,std::string> >& rules);
     std::vector<std::pair<bool,std::string> > getFilters();
-    std::set<std::string> getIndexedFiles();
     void indexFile(const std::string &path, uint64_t mtime,
         const std::vector<char>&);
     std::vector<std::string> getFieldNames();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic