From 599361195083fb3538d51ded9283a4189f0fb640 Mon Sep 17 00:00:00 2001 From: Yiannis Christodoulou Date: Mon, 23 Jun 2025 20:04:10 +0300 Subject: [PATCH] chore: remove some unnecessary comments --- .../video-editor/client/src/components/TimelineControls.tsx | 1 - .../video-editor/client/src/hooks/useVideoTrimmer.tsx | 6 ------ 2 files changed, 7 deletions(-) diff --git a/frontend-tools/video-editor/client/src/components/TimelineControls.tsx b/frontend-tools/video-editor/client/src/components/TimelineControls.tsx index 26eb9dd4..67f517bb 100644 --- a/frontend-tools/video-editor/client/src/components/TimelineControls.tsx +++ b/frontend-tools/video-editor/client/src/components/TimelineControls.tsx @@ -1739,7 +1739,6 @@ const TimelineControls = ({ console.error("Error resuming playback after segment click:", err); }); } - // Removed preview mode playback - preview functionality replaced by segments playback } // Calculate tooltip position directly above click point diff --git a/frontend-tools/video-editor/client/src/hooks/useVideoTrimmer.tsx b/frontend-tools/video-editor/client/src/hooks/useVideoTrimmer.tsx index 139a37b2..75457081 100644 --- a/frontend-tools/video-editor/client/src/hooks/useVideoTrimmer.tsx +++ b/frontend-tools/video-editor/client/src/hooks/useVideoTrimmer.tsx @@ -21,8 +21,6 @@ const useVideoTrimmer = () => { const [isPlaying, setIsPlaying] = useState(false); const [isMuted, setIsMuted] = useState(false); - // Removed preview mode - replaced by isPlayingSegments - // Timeline state const [thumbnails, setThumbnails] = useState([]); const [trimStart, setTrimStart] = useState(0); @@ -515,10 +513,6 @@ const useVideoTrimmer = () => { }; }, [clipSegments, duration]); - // Removed preview mode effect - functionality replaced by isPlayingSegments - - // Removed preview mode functions - replaced by handlePlaySegments - // Handle trim start change const handleTrimStartChange = (time: number) => { setTrimStart(time);