浏览代码

Merge branch 'remove-extra-debug-info'

* remove-extra-debug-info:
  Do not display debug info when tagCacheExists method works as expected.
  Remove qDebug statement from registerCompressionLibraries()
Jean-Christophe Fillion-Robin 11 年之前
父节点
当前提交
62675d0e55
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      Libs/DICOM/Core/ctkDICOMDatabase.cpp

+ 2 - 5
Libs/DICOM/Core/ctkDICOMDatabase.cpp

@@ -182,7 +182,6 @@ void ctkDICOMDatabasePrivate::init(QString databaseFilename)
 
 //------------------------------------------------------------------------------
 void ctkDICOMDatabasePrivate::registerCompressionLibraries(){
-  logger.debug("Register compression libraries");
   // Register the JPEG libraries in case we need them
   //   (registration only happens once, so it's okay to call repeatedly)
   // register global JPEG decompression codecs
@@ -1212,14 +1211,14 @@ void ctkDICOMDatabasePrivate::insert( const ctkDICOMItem& ctkDataset, const QStr
 
   // this is the method that all other insert signatures end up calling
   // after they have pre-parsed their arguments
- 
+
   // Check to see if the file has already been loaded
   // TODO:
   // It could make sense to actually remove the dataset and re-add it. This needs the remove
   // method we still have to write.
   //
   //
-  
+
   QString sopInstanceUID ( ctkDataset.GetElementAsString(DCM_SOPInstanceUID) );
 
   QSqlQuery fileExistsQuery ( Database );
@@ -1630,7 +1629,6 @@ bool ctkDICOMDatabase::tagCacheExists()
   // try to open the database if it's not already open
   if ( !(d->TagCacheDatabase.isOpen()) )
     {
-    qDebug() << "TagCacheDatabase not open\n";
     d->TagCacheDatabase = QSqlDatabase::addDatabase("QSQLITE", d->Database.connectionName() + "TagCache");
     d->TagCacheDatabase.setDatabaseName(d->TagCacheDatabaseFilename);
     if ( !(d->TagCacheDatabase.open()) )
@@ -1653,7 +1651,6 @@ bool ctkDICOMDatabase::tagCacheExists()
   bool success = d->loggedExec(cacheExists);
   if (success)
     {
-    qDebug() << "TagCacheDatabase verified!\n";
     d->TagCacheVerified = true;
     return true;
     }