-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Beats: Move identical method implementations from BeatGrid/BeatMap #4234
Conversation
40ec876
to
39fafc0
Compare
This is a first step toward merging the beatgrid/beatmap classes into a single class.
39fafc0
to
17b9502
Compare
Pull Request Test Coverage Report for Build 1151815857
💛 - Coveralls |
src/track/beats.h
Outdated
@@ -155,6 +155,10 @@ class Beats { | |||
|
|||
/// Adjust the beats so the global average BPM matches `bpm`. | |||
virtual BeatsPointer setBpm(mixxx::Bpm bpm) = 0; | |||
|
|||
protected: | |||
/// For internal use only. |
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.
This comment can be removed. That is clear from the method being protected.
// This could be implemented in the Beats Class itself. | ||
// If necessary, the child class can redefine it. |
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 write this comment instead of just doing it...
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.
@Be-ing I guess you got confused by the diff? This code and comments have been deleted because they became obsolete.
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.
I saw that. I am just lamenting that this wasn't already done 10 years ago.
src/track/beatmap.h
Outdated
@@ -82,7 +79,7 @@ class BeatMap final : public Beats { | |||
BeatMap(const BeatMap& other); | |||
|
|||
// For internal use only. |
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.
Same here, adding such a comment to a private method is confusing. Unrelated, but let's clean this up now.
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.
Ready after deleting the remaining, useless comments.
thanks |
This is a first step toward merging the beatgrid/beatmap classes into a
single class.