Skip to content

remove unused functions, make single-use functions static - #11174

Closed
bagder wants to merge 2 commits into
masterfrom
bagder/static-tidy
Closed

bagder wants to merge 2 commits into
masterfrom
bagder/static-tidy

Conversation

@bagder

@bagder bagder commented May 22, 2023

Copy link
Copy Markdown
Member

No description provided.

@bagder

bagder commented May 22, 2023

Copy link
Copy Markdown
Member Author

@icing Curl_cf_def_close is a function that is only unit-tested and never used in libcurl itself. Isn't that odd?

@icing

icing commented May 22, 2023

Copy link
Copy Markdown
Contributor

@icing Curl_cf_def_close is a function that is only unit-tested and never used in libcurl itself. Isn't that odd?

If every filter we have adds its own method, it is an offering never used, indeed.

@bagder
bagder marked this pull request as ready for review May 22, 2023 14:40
@bagder
bagder force-pushed the bagder/static-tidy branch from 22dbde8 to 0386846 Compare May 22, 2023 14:40
@bagder

bagder commented May 22, 2023

Copy link
Copy Markdown
Member Author

If every filter we have adds its own method, it is an offering never used, indeed.

I moved it into an #ifdef DEBUGBUILD to make the unit test remain functional without adding unused code to non-debug builds.

@bagder bagder closed this in 8e85764 May 23, 2023
@bagder
bagder deleted the bagder/static-tidy branch May 23, 2023 09:09
bch pushed a commit to bch/curl that referenced this pull request Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants