From 7930cceda5c796130165424c7df5524bba2d3ddb Mon Sep 17 00:00:00 2001 From: Ethan Dye Date: Wed, 6 Nov 2024 21:10:59 -0700 Subject: [PATCH] Remove more unused code Signed-off-by: Ethan Dye --- Sources/macSubtitleOCR/MKV/EBML/EBML.swift | 1 - Sources/macSubtitleOCR/MKV/MKVHelpers.swift | 1 - 2 files changed, 2 deletions(-) diff --git a/Sources/macSubtitleOCR/MKV/EBML/EBML.swift b/Sources/macSubtitleOCR/MKV/EBML/EBML.swift index 89f06ba..48281a3 100644 --- a/Sources/macSubtitleOCR/MKV/EBML/EBML.swift +++ b/Sources/macSubtitleOCR/MKV/EBML/EBML.swift @@ -20,7 +20,6 @@ enum EBML { static let segmentID: UInt32 = 0x1853_8067 static let simpleBlock: UInt32 = 0xA3 static let timestamp: UInt32 = 0xE7 - static let timestampScale: UInt32 = 0x2AD7B1 static let tracksID: UInt32 = 0x1654_AE6B static let trackEntryID: UInt32 = 0xAE static let trackTypeID: UInt32 = 0x83 diff --git a/Sources/macSubtitleOCR/MKV/MKVHelpers.swift b/Sources/macSubtitleOCR/MKV/MKVHelpers.swift index c3c4223..c89d18f 100644 --- a/Sources/macSubtitleOCR/MKV/MKVHelpers.swift +++ b/Sources/macSubtitleOCR/MKV/MKVHelpers.swift @@ -36,7 +36,6 @@ func encodePTSForVobSub(from timestamp: UInt64) -> [UInt8] { // Calculate the absolute timestamp with 90 kHz accuracy func calculateAbsolutePTS(_ clusterTimestamp: Int64, _ blockTimestamp: Int64) -> UInt64 { - // The block timestamp is relative, so we add it to the cluster timestamp UInt64(clusterTimestamp + blockTimestamp) * 90 }