-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 duplicated defs #8270
Remove duplicated defs #8270
Conversation
@@ -43,8 +43,6 @@ module IO::ByteFormat | |||
abstract def encode(int : UInt64, io : IO) | |||
abstract def encode(int : Int128, io : IO) | |||
abstract def encode(int : UInt128, io : IO) | |||
abstract def encode(int : Float32, io : IO) | |||
abstract def encode(int : Float64, io : IO) |
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.
Why are these useless?
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.
Because they are defined as non-abstract a few lines below. It doesn't make sense to define a method as abstract and as non-abstract in the same type.
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.
Whoops, I'm blind :)
Extracted from #8260