diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rs index 468bc0dbfc3c..6f7f5fcf2f69 100644 --- a/crates/router/src/core/payment_methods/cards.rs +++ b/crates/router/src/core/payment_methods/cards.rs @@ -2330,7 +2330,6 @@ pub async fn list_payment_methods( let mut response: Vec = vec![]; // Key creation for storing PM_FILTER_CGRAPH - #[cfg(feature = "business_profile_routing")] let key = { let profile_id = profile_id .clone() @@ -2344,9 +2343,6 @@ pub async fn list_payment_methods( ) }; - #[cfg(not(feature = "business_profile_routing"))] - let key = { format!("pm_filters_cgraph_{}", &merchant_account.merchant_id) }; - if let Some(graph) = get_merchant_pm_filter_graph(&state, &key).await { // Derivation of PM_FILTER_CGRAPH from MokaCache successful for mca in &filtered_mcas {