-
Notifications
You must be signed in to change notification settings - Fork 892
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
GODRIVER-2722 Remove/unexport unnecessary interfaces. #1669
Conversation
API Change Report./bsonincompatible changesBytesReader: removed |
bson/primitive.go
Outdated
type zeroer interface { | ||
IsZero() bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considering the recent relevance of IsZero
, it's possible we may need to keep the Zeroer
interface exported.
bson/proxy.go
Outdated
type proxy interface { | ||
ProxyBSON() (interface{}, error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should consider completely removing the ProxyBSON
feature. Based on searching for uses in open-source repos, it seems completely unused.
bson/struct_codec.go
Outdated
if cz, ok := encoder.(interface { | ||
IsTypeZero(interface{}) bool | ||
}); ok { | ||
empty = cz.IsTypeZero(rv.Interface()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should consider completely removing the IsTypeZero
feature. Based on searching for uses in open-source repos, it seems completely unused.
a6be53c
to
c3709b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 👍
39f33cd
GODRIVER-2722
Summary
Remove/un-export unnecessary interfaces.