Skip to content

Commit 29c6bc4

Browse files
committed
Remove setWrappedType() and setUnwrappedType()
There is no need for these public member functions
1 parent 4b62526 commit 29c6bc4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

DataFormats/Provenance/interface/BranchDescription.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ namespace edm {
9191
bool transient() const { return transient_.transient_; }
9292
void setTransient(bool isTransient) { transient_.transient_ = isTransient; }
9393
TypeWithDict const& wrappedType() const { return transient_.wrappedType_; }
94-
void setWrappedType(TypeWithDict const& type) { transient_.wrappedType_ = type; }
9594
TypeWithDict const& unwrappedType() const { return transient_.unwrappedType_; }
96-
void setUnwrappedType(TypeWithDict const& type) { transient_.unwrappedType_ = type; }
9795
TypeID wrappedTypeID() const { return TypeID(transient_.wrappedType_.typeInfo()); }
9896
TypeID unwrappedTypeID() const { return TypeID(transient_.unwrappedType_.typeInfo()); }
9997

DataFormats/Provenance/src/BranchDescription.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ namespace edm {
8686
setProduced(aliasForBranch.produced());
8787
setOnDemand(false); // will be re-set externally to the aliasForBranch.onDemand() after that one has been set
8888
transient_.availableOnlyAtEndTransition_ = aliasForBranch.availableOnlyAtEndTransition();
89-
setUnwrappedType(aliasForBranch.unwrappedType());
89+
transient_.unwrappedType_ = aliasForBranch.unwrappedType();
9090
init();
9191
}
9292

@@ -149,7 +149,7 @@ namespace edm {
149149
try {
150150
setWrappedName(wrappedClassName(fullClassName()));
151151
// unwrapped type.
152-
setUnwrappedType(TypeWithDict::byName(fullClassName()));
152+
transient_.unwrappedType_ = TypeWithDict::byName(fullClassName());
153153
if (!bool(unwrappedType())) {
154154
setTransient(false);
155155
return;
@@ -161,7 +161,7 @@ namespace edm {
161161

162162
edm::TypeWithDict wrType(TypeWithDict::byName(wrappedName()));
163163
try {
164-
setWrappedType(wrType);
164+
transient_.wrappedType_ = wrType;
165165
if (!bool(wrappedType())) {
166166
return;
167167
}

0 commit comments

Comments
 (0)