minor code cleanup
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 11 Feb 2011 14:06:46 +0000 (14:06 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 11 Feb 2011 14:06:46 +0000 (14:06 +0000)
HLT/BASE/AliHLTDataBuffer.cxx

index b4c922e..629d4bf 100644 (file)
@@ -135,7 +135,7 @@ int AliHLTDataBuffer::FindMatchingDataBlocks(const AliHLTComponent* pConsumer, A
   return iResult;
 }
 
-int AliHLTDataBuffer::FindMatchingDataSegments(const AliHLTComponent* pConsumer,
+int AliHLTDataBuffer::FindMatchingDataSegments(const AliHLTComponent* /*pConsumer*/,
                                               vector<AliHLTDataBuffer::AliHLTDataSegment>& tgtList)
 {
   // see header file for function documentation
@@ -150,29 +150,6 @@ int AliHLTDataBuffer::FindMatchingDataSegments(const AliHLTComponent* pConsumer,
   tgtList.insert(tgtList.begin(), fForwardedSegments.begin(), fForwardedSegments.end());
   iResult=tgtList.size();
   return iResult;
-  
-  // NOTE: the remaining code is disabled
-  // to be deleted at cleanup
-  if (pConsumer) {
-    AliHLTComponentDataTypeList dtlist;
-    ((AliHLTComponent*)pConsumer)->GetInputDataTypes(dtlist);
-    AliHLTDataSegmentList::iterator segment=fSegments.begin();
-    while (segment!=fSegments.end()) {
-      AliHLTComponentDataTypeList::iterator type=dtlist.begin();
-      while (type!=dtlist.end()) {
-       if ((*segment).fDataType==(*type)) {
-         tgtList.push_back(*segment);
-         iResult++;
-         break;
-       }
-       type++;
-      }
-      segment++;
-    }
-  } else {
-    iResult=-EINVAL;
-  }
-  return iResult;
 }
 
 int AliHLTDataBuffer::Subscribe(const AliHLTComponent* pConsumer, AliHLTComponentBlockDataList& blockDescList)