chore: remove should_call_connector_service_with_pre_decide_flow function from ConnectorSpecification trait

This commit is contained in:
hrithikesh026
2025-10-16 17:08:58 +05:30
parent ad06d7704a
commit fef6db4d14
2 changed files with 0 additions and 21 deletions

View File

@ -415,14 +415,6 @@ pub enum PreProcessingFlowName {
/// The trait that provides specifications about the connector
pub trait ConnectorSpecifications {
/// indicates whether the new pre-decide flow should be called
/// By default, it is false for all connectors
fn should_call_connector_service_with_pre_decide_flow(
&self,
_current_flow: CurrentFlowInfo<'_>,
) -> bool {
false
}
/// Preprocessing flow name if any, that must be made before the current flow.
fn get_preprocessing_flow_if_needed(
&self,

View File

@ -508,19 +508,6 @@ impl ConnectorValidation for ConnectorEnum {
}
impl ConnectorSpecifications for ConnectorEnum {
fn should_call_connector_service_with_pre_decide_flow(
&self,
current_flow: api::CurrentFlowInfo<'_>,
) -> bool {
match self {
Self::Old(connector) => {
connector.should_call_connector_service_with_pre_decide_flow(current_flow)
}
Self::New(connector) => {
connector.should_call_connector_service_with_pre_decide_flow(current_flow)
}
}
}
fn get_preprocessing_flow_if_needed(
&self,
current_flow_info: api::CurrentFlowInfo<'_>,