mirror of
https://github.com/yattee/yattee.git
synced 2026-04-10 01:26:57 +00:00
Deduplicate time formatting and clean up unused code
Extract shared TimeInterval.formattedAsTimestamp replacing 8 identical formatTime/formattedTime implementations across player views. Remove unused currentTime parameter from GestureSeekPreviewView. Consolidate duplicated geometry math in MacOSControlBar into seekPreviewPosition().
This commit is contained in:
@@ -12,7 +12,6 @@ import SwiftUI
|
||||
/// Shows only the storyboard thumbnail with timestamp overlay.
|
||||
struct GestureSeekPreviewView: View {
|
||||
let storyboard: Storyboard?
|
||||
let currentTime: TimeInterval
|
||||
let seekTime: TimeInterval
|
||||
let duration: TimeInterval
|
||||
let storyboardService: StoryboardService
|
||||
@@ -70,7 +69,6 @@ struct GestureSeekPreviewView: View {
|
||||
|
||||
GestureSeekPreviewView(
|
||||
storyboard: nil,
|
||||
currentTime: 120,
|
||||
seekTime: 180,
|
||||
duration: 600,
|
||||
storyboardService: StoryboardService(),
|
||||
|
||||
Reference in New Issue
Block a user