Skip to content

Commit

Permalink
refactor(music_item): remove unnecessary private constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
albertms10 committed Apr 22, 2023
1 parent 3c3e8dd commit 57a39b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions lib/src/music_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ part of '../music_notes.dart';
abstract class MusicItem implements Comparable<MusicItem> {
/// The number of semitones that correspond to this [MusicItem].
int get semitones;

const MusicItem._();
}
3 changes: 1 addition & 2 deletions lib/src/transposable.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
part of '../music_notes.dart';

@immutable
// ignore: one_member_abstracts
abstract class Transposable<T> {
/// Returns a transposed [T] by [semitones] from this [T].
T transposeBy(int semitones);

const Transposable._();
}

0 comments on commit 57a39b1

Please sign in to comment.