Skip to content

Remove unused methods#2727

Merged
mislav merged 1 commit intocli:trunkfrom
cristiand391:remove-unused-methods
Jan 5, 2021
Merged

Remove unused methods#2727
mislav merged 1 commit intocli:trunkfrom
cristiand391:remove-unused-methods

Conversation

@cristiand391
Copy link
Copy Markdown
Contributor

This PR removes some unused methods from httpmock.

@cristiand391
Copy link
Copy Markdown
Contributor Author

It seems there are some tests still using the legacy implementation for HTTP stubbing, any interest in a PR updating them?

@vilmibm
Copy link
Copy Markdown
Contributor

vilmibm commented Jan 4, 2021

@cristiand391 that would be much appreciated. Thanks for looking into it!

Copy link
Copy Markdown
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Thank you

@mislav
Copy link
Copy Markdown
Contributor

mislav commented Jan 5, 2021

It seems there are some tests still using the legacy implementation for HTTP stubbing, any interest in a PR updating them?

It would be great if you ported that, but please do submit a separate PR so that the changeset is separate from simply removing dead code.

Regarding this PR: I've spent some time trying to see if we can set up a linter that detects unused exported functions/types, but there isn't a bug-free solution out there that I could find. golangci/golangci-lint#791 (comment)

@mislav mislav merged commit ca83106 into cli:trunk Jan 5, 2021
@cristiand391 cristiand391 deleted the remove-unused-methods branch January 5, 2021 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants