@@ -63,7 +63,7 @@ namespace edm {
6363 freezeIt (toBeFrozen);
6464 }
6565
66- void ProductRegistry::addProduct_ (ProductDescription const & productDesc, bool fromListener ) {
66+ void ProductRegistry::addProduct_ (ProductDescription const & productDesc) {
6767 assert (productDesc.produced ());
6868 throwIfFrozen ();
6969 std::pair<ProductList::iterator, bool > ret =
@@ -100,12 +100,11 @@ namespace edm {
100100 << " descendants of those products.\n " ;
101101 }
102102 }
103- addCalled (productDesc, fromListener);
104103 }
105104
106- void ProductRegistry::addLabelAlias_ (ProductDescription const & productDesc,
107- std::string const & labelAlias,
108- std::string const & instanceAlias) {
105+ ProductDescription const & ProductRegistry::addLabelAlias_ (ProductDescription const & productDesc,
106+ std::string const & labelAlias,
107+ std::string const & instanceAlias) {
109108 assert (productDesc.produced ());
110109 assert (productDesc.branchID ().isValid ());
111110 throwIfFrozen ();
@@ -114,7 +113,7 @@ namespace edm {
114113 assert (ret.second );
115114 transient_.aliasToOriginal_ .emplace_back (
116115 PRODUCT_TYPE, productDesc.unwrappedTypeID (), labelAlias, instanceAlias, productDesc.moduleLabel ());
117- addCalled (bd, false ) ;
116+ return ret. first -> second ;
118117 }
119118
120119 void ProductRegistry::copyProduct (ProductDescription const & productDesc) {
@@ -178,8 +177,6 @@ namespace edm {
178177 }
179178 }
180179
181- void ProductRegistry::addCalled (ProductDescription const &, bool ) {}
182-
183180 std::vector<std::string> ProductRegistry::allBranchNames () const {
184181 std::vector<std::string> result;
185182 result.reserve (productList ().size ());
@@ -212,20 +209,6 @@ namespace edm {
212209 }
213210 }
214211
215- void ProductRegistry::addFromInput_ (edm::ProductRegistry const & other) {
216- throwIfFrozen ();
217- for (auto const & prod : other.productList_ ) {
218- ProductList::iterator iter = productList_.find (prod.first );
219- if (iter == productList_.end ()) {
220- productList_.insert (std::make_pair (prod.first , prod.second ));
221- addCalled (prod.second , false );
222- } else {
223- assert (combinable (iter->second , prod.second ));
224- iter->second .merge (prod.second );
225- }
226- }
227- }
228-
229212 void ProductRegistry::setUnscheduledProducts (std::set<std::string> const & unscheduledLabels) {
230213 throwIfFrozen ();
231214
0 commit comments