From a709b4acee376921cc9a9f2f09d7dc7bb24e71c5 Mon Sep 17 00:00:00 2001
From: Slava Krutelyov <slava77@gmail.com>
Date: Tue, 25 Apr 2023 09:49:29 -0700
Subject: [PATCH 1/2] looks like some spurious change from an old auto-fwd-port
 in 2015

---
 PhysicsTools/PatAlgos/plugins/PATPhotonProducer.cc | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/PhysicsTools/PatAlgos/plugins/PATPhotonProducer.cc b/PhysicsTools/PatAlgos/plugins/PATPhotonProducer.cc
index 46deba6ff8be8..f634776701a19 100644
--- a/PhysicsTools/PatAlgos/plugins/PATPhotonProducer.cc
+++ b/PhysicsTools/PatAlgos/plugins/PATPhotonProducer.cc
@@ -182,9 +182,6 @@ void pat::PATPhotonProducer::readIsolationLabels(const edm::ParameterSet& iConfi
         labels.push_back(std::make_pair(pat::IsolationKeys(key), *it));
       }
     }
-
-    tokens = edm::vector_transform(
-        labels, [this](IsolationLabel const& label) { return consumes<edm::ValueMap<T>>(label.second); });
   }
   tokens = edm::vector_transform(
       labels, [this](IsolationLabel const& label) { return consumes<edm::ValueMap<T>>(label.second); });

From 8cbe321173ddc0a87804e12a4cf697d6e4b10f97 Mon Sep 17 00:00:00 2001
From: Slava Krutelyov <slava77@gmail.com>
Date: Tue, 25 Apr 2023 09:51:25 -0700
Subject: [PATCH 2/2] spurious change from auto-fwd port

---
 PhysicsTools/PatAlgos/plugins/PATMuonProducer.cc | 2 --
 1 file changed, 2 deletions(-)

diff --git a/PhysicsTools/PatAlgos/plugins/PATMuonProducer.cc b/PhysicsTools/PatAlgos/plugins/PATMuonProducer.cc
index 9e3244ecce841..624a935c47189 100644
--- a/PhysicsTools/PatAlgos/plugins/PATMuonProducer.cc
+++ b/PhysicsTools/PatAlgos/plugins/PATMuonProducer.cc
@@ -309,8 +309,6 @@ void pat::PATMuonProducer::readIsolationLabels(const edm::ParameterSet& iConfig,
       for (; it != ed; ++it, ++key) {
         labels.push_back(std::make_pair(pat::IsolationKeys(key), *it));
       }
-      tokens = edm::vector_transform(
-          labels, [this](IsolationLabel const& label) { return consumes<edm::ValueMap<T>>(label.second); });
     }
   }
   tokens = edm::vector_transform(labels, [this](pat::PATMuonProducer::IsolationLabel const& label) {