Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused interface methods #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dnephin
Copy link
Contributor

@dnephin dnephin commented Aug 31, 2020

With the addition of labels in #54 only the new WithLabels methods on Sink are used by go-metrics.

My understanding is that this should be a backwards compatible change, because Sink is the interface accepted by metrics.New. Implementations of a Sink outside of this package would continue to work, and new one would no longer need to implement the 3 unused methods. Nothing outside of this package should call the Sink methods directly, they would call the methods on Metrics, which have not changed.

@dnephin dnephin force-pushed the remove-unused-interface-methods branch from be62836 to 2c01865 Compare September 10, 2020 15:05
With the addition of labels in hashicorp#54 the Metrics struct only uses the new
WithLabels methods on Sink.

This change removes the unused methods.
@dnephin dnephin force-pushed the remove-unused-interface-methods branch from 2c01865 to afd8928 Compare October 29, 2020 16:59
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.

1 participant