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

Beats: Move identical method implementations from BeatGrid/BeatMap #4234

Merged
merged 2 commits into from
Aug 20, 2021

Conversation

Holzhaus
Copy link
Member

This is a first step toward merging the beatgrid/beatmap classes into a
single class.

This is a first step toward merging the beatgrid/beatmap classes into a
single class.
@coveralls
Copy link

coveralls commented Aug 20, 2021

Pull Request Test Coverage Report for Build 1151815857

  • 15 of 17 (88.24%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.004%) to 25.953%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/track/beats.cpp 15 17 88.24%
Totals Coverage Status
Change from base Build 1148481046: 0.004%
Covered Lines: 19993
Relevant Lines: 77035

💛 - Coveralls

@@ -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.
Copy link
Contributor

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.

Comment on lines -146 to -147
// This could be implemented in the Beats Class itself.
// If necessary, the child class can redefine it.
Copy link
Contributor

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...

Copy link
Contributor

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.

Copy link
Contributor

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.

@@ -82,7 +79,7 @@ class BeatMap final : public Beats {
BeatMap(const BeatMap& other);

// For internal use only.
Copy link
Contributor

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.

Copy link
Contributor

@uklotzde uklotzde left a 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.

@Be-ing Be-ing merged commit 49d9f5c into mixxxdj:main Aug 20, 2021
@Be-ing
Copy link
Contributor

Be-ing commented Aug 20, 2021

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants