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

List:       kde-commits
Subject:    kdesupport/strigi/src/streamanalyzer
From:       Arend van Beelen jr. <arend () auton ! nl>
Date:       2007-03-26 20:28:30
Message-ID: 1174940910.775388.7406.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 646878 by arendjr:

- Removed some debug output.

 M  +0 -11     odfmimetypelineanalyzer.cpp  
 M  +0 -2      odfmimetypelineanalyzer.h  


--- trunk/kdesupport/strigi/src/streamanalyzer/odfmimetypelineanalyzer.cpp #646877:646878
@@ -21,7 +21,6 @@
 
 #include <cassert>
 #include <cstring>
-#include <iostream>
 
 #include "analysisresult.h"
 #include "fieldtypes.h"
@@ -47,12 +46,6 @@
 void OdfMimeTypeLineAnalyzer::startAnalysis(AnalysisResult *result) {
     assert(result != 0);
 
-    std::cout << "OdfMimeTypeLineAnalyzer::startAnalysis() called." << std::endl;
-    std::cout << result->fileName() << std::endl;
-    if(result->parent() != 0) {
-        std::cout << "MIME type: " << result->parent()->mimeType() << std::endl;
-    }
-
     if(result->fileName() == "mimetype" &&
        result->parent() != 0 && result->parent()->mimeType() == "application/zip") {
         m_result = result->parent();
@@ -69,8 +62,6 @@
 void OdfMimeTypeLineAnalyzer::handleLine(const char *data, uint32_t length) {
     assert(m_result != 0);
 
-    std::cout << "OdfMimeTypeLineAnalyzer::handleLine() called." << std::endl;
-
     if(length < 35 || strncmp(data, "application/vnd.oasis.opendocument.", 35) != 0) {
         m_ready = true;
         return;
@@ -79,8 +70,6 @@
     std::string mimeType;
     mimeType.assign(data, length);
 
-    std::cout << mimeType << std::endl;
-
     m_result->setField(m_factory->mimeTypeField, mimeType);
     m_result->setMimeType(mimeType);
 }
--- trunk/kdesupport/strigi/src/streamanalyzer/odfmimetypelineanalyzer.h #646877:646878
@@ -22,8 +22,6 @@
 #ifndef ODFMIMETYPELINEANALYZER_H
 #define ODFMIMETYPELINEANALYZER_H
 
-#include <string>
-
 #include "streamlineanalyzer.h"
 
 class OdfMimeTypeLineAnalyzerFactory : public Strigi::StreamLineAnalyzerFactory {
[prev in list] [next in list] [prev in thread] [next in thread] 

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