hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

refactor(routers,connectors) : Remove unused functions in `crates/router/src/connector/utils.rs`

Open Nithin1506200 opened this issue 8 months ago • 2 comments

Analyze and Remove Unused Functions from crates/router/src/connector/utils.rs

Description:

There are functions in the crates/router/src/connector/utils.rs file that appear to be unused across the router crate. For

example: • validate_currency is defined in utils.rs but is not used anywhere in the codebase. This function can be safely removed.

Task:

• Perform a comprehensive analysis of all the functions present in crates/router/src/connector/utils.rs. • Identify any functions that are not referenced anywhere in the router crate which are in utils. • Remove such unused functions to reduce dead code and improve maintainability.

Nithin1506200 avatar Apr 29 '25 08:04 Nithin1506200

Hello @Nithin1506200 I removed unused functions and unused imports from crates/router/src/connector/utils.rs. If you could assign this issue to me, I would be happy to create a merge request.

Surya-7890 avatar Apr 29 '25 12:04 Surya-7890

@Nithin1506200 can you assign this issue to me.

adiityack avatar May 06 '25 08:05 adiityack

Hello @Nithin1506200 I removed unused functions and unused imports from crates/router/src/connector/utils.rs. If you could assign this issue to me, I would be happy to create a merge request.

@Surya-7890 assigned the issue to you.

neerajkumar-n avatar May 09 '25 06:05 neerajkumar-n