Skip to content

Commit

Permalink
未使用の関数を削除
Browse files Browse the repository at this point in the history
  • Loading branch information
sigprogramming committed Oct 19, 2023
1 parent 705875e commit cf0fb5e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/store/singing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,22 +219,6 @@ const isValidNote = (note: Note) => {
);
};

const isValidTempos = (tempos: Tempo[]) => {
return (
tempos.length > 0 &&
tempos[0].position === 0 &&
tempos.every((value) => isValidTempo(value))
);
};

const isValidTimeSignatures = (timeSignatures: TimeSignature[]) => {
return (
timeSignatures.length > 0 &&
timeSignatures[0].position === 0 &&
timeSignatures.every((value) => isValidTimeSignature(value))
);
};

const getFromOptional = <T>(value: T | undefined): T => {
if (value === undefined) {
throw new Error("The value is undefined.");
Expand Down

0 comments on commit cf0fb5e

Please sign in to comment.