Skip to content

Commit

Permalink
Merge pull request #21194 from Dr15Jones/removeConstCastFromEDConsume…
Browse files Browse the repository at this point in the history
…rBase

Removed unnecessary caching for consumes failures
  • Loading branch information
cmsbuild committed Nov 7, 2017
2 parents fcaeeab + 9bc264e commit f5b6ce1
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions FWCore/Framework/src/EDConsumerBase.cc
Expand Up @@ -320,14 +320,6 @@ EDConsumerBase::registeredToConsume(ProductResolverIndex iIndex, bool skipCurren
return true;
}
}
//TEMPORARY: Remember so we do not have to do this again
//non thread-safe
EDConsumerBase* nonConstThis = const_cast<EDConsumerBase*>(this);
nonConstThis->m_tokenInfo.emplace_back(TokenLookupInfo{TypeID{}, iIndex, skipCurrentProcess, iBranch},
true,
LabelPlacement{0,0,0},
PRODUCT_TYPE);

return false;
}

Expand All @@ -344,13 +336,6 @@ EDConsumerBase::registeredToConsumeMany(TypeID const& iType, BranchType iBranch)
return true;
}
}
//TEMPORARY: Remember so we do not have to do this again
//non thread-safe
EDConsumerBase* nonConstThis = const_cast<EDConsumerBase*>(this);
nonConstThis->m_tokenInfo.emplace_back(TokenLookupInfo{iType,ProductResolverIndexInvalid, false, iBranch},
true,
LabelPlacement{0,0,0},
PRODUCT_TYPE);
return false;

}
Expand Down

0 comments on commit f5b6ce1

Please sign in to comment.