]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
correcting compilation warnings and cleaning dead code
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Aug 2011 18:24:20 +0000 (18:24 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Aug 2011 18:24:20 +0000 (18:24 +0000)
HLT/TRD/AliHLTTRDGlobalMonitorComponent.cxx
HLT/TRD/AliHLTTRDMonitorComponent.cxx

index f82a66e4be64e4fc8263dde97ba9138075b3b014..1fb93458f3b5f11c38cb5693d0bff469d6641224 100644 (file)
@@ -102,7 +102,7 @@ AliHLTComponent* AliHLTTRDGlobalMonitorComponent::Spawn()
   return new AliHLTTRDGlobalMonitorComponent;
 }
 
-int AliHLTTRDGlobalMonitorComponent::DoInit( int argc, const char** argv )
+int AliHLTTRDGlobalMonitorComponent::DoInit( int /*argc*/, const char** /*argv*/ )
 {
   fHistArray = new TObjArray(25);
   if(!fHistArray)
@@ -389,7 +389,7 @@ int AliHLTTRDGlobalMonitorComponent::DoEvent( const AliHLTComponentEventData& /*
   return iResult;
 }
 
-int AliHLTTRDGlobalMonitorComponent::Configure(const char* arguments)
+int AliHLTTRDGlobalMonitorComponent::Configure(const char* /*arguments*/)
 {
   // see header file for class documentation
   int iResult=0;
@@ -397,7 +397,7 @@ int AliHLTTRDGlobalMonitorComponent::Configure(const char* arguments)
   return iResult;
 }
 
-int AliHLTTRDGlobalMonitorComponent::Reconfigure(const char* cdbEntry, const char* /*chainId*/)
+int AliHLTTRDGlobalMonitorComponent::Reconfigure(const char* /*cdbEntry*/, const char* /*chainId*/)
 {
   // see header file for class documentation
   int iResult=0;
index 234eee483e666c0199b3ad57f61ab3cd0a15a138..79372d6056707fa25386e45bdb69f13e71fae610 100644 (file)
@@ -151,8 +151,8 @@ int AliHLTTRDMonitorComponent::DoInit( int /*argc*/, const char** /*argv*/ )
   //}
 
   // implement the component initialization
+  // Matthias 2011-08-24: this has to go into ScanConfigurationArgument
   do {
-    if (iResult<0) break;
 
     fRawReaderMem = new AliRawReaderMemory; 
     if (!fRawReaderMem) {
@@ -600,13 +600,11 @@ int AliHLTTRDMonitorComponent::DoEvent(const AliHLTComponentEventData& /*evtData
                       (kAliHLTDataTypeTObject | kAliHLTDataOriginTRD), 
                       pBlock->fSpecification);
 
-    if (iResult != 0)                                                                                                                                                
-      break;  
+    if (iResult < 0)                                  
+      break;
                       
     // clear the rawreader
     fRawReaderMem->ClearBuffers();    
-    if (iResult != 0)
-      break;
   }
 
   return iResult;