From 4f71771fb6e47aa071fdaa56d010082eba04ea24 Mon Sep 17 00:00:00 2001 From: bgallois <benjamin@gallois.cc> Date: Mon, 30 Sep 2024 21:23:14 +0200 Subject: [PATCH] fix filter --- runtime/g1/src/lib.rs | 6 ------ runtime/gdev/src/lib.rs | 6 ------ runtime/gtest/src/lib.rs | 6 ------ 3 files changed, 18 deletions(-) diff --git a/runtime/g1/src/lib.rs b/runtime/g1/src/lib.rs index e7ec1479e..eb14536cb 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 fe8d8f81d..e29dad200 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 c9aeec498..1bc5d084a 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. -- GitLab