diff --git a/runtime/g1/src/lib.rs b/runtime/g1/src/lib.rs index e7ec1479e6006d982501e5dfa5d8a34cf8e49340..eb14536cb53afe53321449c3a479cdbaefe2ac62 100644 --- a/runtime/g1/src/lib.rs +++ b/runtime/g1/src/lib.rs @@ -173,7 +173,6 @@ mod benches { pub struct BaseCallFilter; impl Contains<RuntimeCall> for BaseCallFilter { - #[cfg(not(feature = "runtime-benchmarks"))] fn contains(call: &RuntimeCall) -> bool { !matches!( call, @@ -181,11 +180,6 @@ impl Contains<RuntimeCall> for BaseCallFilter { | RuntimeCall::Session(_) ) } - - #[cfg(feature = "runtime-benchmarks")] - fn contains(call: &RuntimeCall) -> bool { - !matches!(call, RuntimeCall::Session(_)) - } } /// The type used to represent the kinds of proxying allowed. diff --git a/runtime/gdev/src/lib.rs b/runtime/gdev/src/lib.rs index fe8d8f81decd6a8f92a4aff0fac88870e0b379c5..e29dad200de83fd04045612195b9133d7b52beb0 100644 --- a/runtime/gdev/src/lib.rs +++ b/runtime/gdev/src/lib.rs @@ -175,7 +175,6 @@ mod benches { pub struct BaseCallFilter; impl Contains<RuntimeCall> for BaseCallFilter { - #[cfg(not(feature = "runtime-benchmarks"))] fn contains(call: &RuntimeCall) -> bool { !matches!( call, @@ -183,11 +182,6 @@ impl Contains<RuntimeCall> for BaseCallFilter { | RuntimeCall::Session(_) ) } - - #[cfg(feature = "runtime-benchmarks")] - fn contains(call: &RuntimeCall) -> bool { - !matches!(call, RuntimeCall::Session(_)) - } } /// The type used to represent the kinds of proxying allowed. diff --git a/runtime/gtest/src/lib.rs b/runtime/gtest/src/lib.rs index c9aeec4980f82e40e2080ba11452ff502f5ae2ff..1bc5d084ac2a291c71884f7f37d1a459054aed51 100644 --- a/runtime/gtest/src/lib.rs +++ b/runtime/gtest/src/lib.rs @@ -173,7 +173,6 @@ mod benches { pub struct BaseCallFilter; impl Contains<RuntimeCall> for BaseCallFilter { - #[cfg(not(feature = "runtime-benchmarks"))] fn contains(call: &RuntimeCall) -> bool { !matches!( call, @@ -181,11 +180,6 @@ impl Contains<RuntimeCall> for BaseCallFilter { | RuntimeCall::Session(_) ) } - - #[cfg(feature = "runtime-benchmarks")] - fn contains(call: &RuntimeCall) -> bool { - !matches!(call, RuntimeCall::Session(_)) - } } /// The type used to represent the kinds of proxying allowed.