Remove unused formatDuration function (fixes build)
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -628,14 +628,6 @@ class MotifApp {
|
|||||||
return this.titleCase(cleaned || 'Unknown');
|
return this.titleCase(cleaned || 'Unknown');
|
||||||
}
|
}
|
||||||
|
|
||||||
private formatDuration(secondsMaybe: any): string {
|
|
||||||
const seconds = Number(secondsMaybe);
|
|
||||||
if (!Number.isFinite(seconds) || seconds <= 0) return '—';
|
|
||||||
const mins = Math.floor(seconds / 60);
|
|
||||||
const secs = Math.floor(seconds % 60);
|
|
||||||
return `${mins}:${secs.toString().padStart(2, '0')}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
private formatSourceLabel(source: string): string {
|
private formatSourceLabel(source: string): string {
|
||||||
const s = String(source || '').toLowerCase();
|
const s = String(source || '').toLowerCase();
|
||||||
if (s === 'bitmidi') return 'BitMidi';
|
if (s === 'bitmidi') return 'BitMidi';
|
||||||
|
|||||||
Reference in New Issue
Block a user