diff --git a/ImageViewer/ViewController.swift b/ImageViewer/ViewController.swift index d746ba7..112bb75 100644 --- a/ImageViewer/ViewController.swift +++ b/ImageViewer/ViewController.swift @@ -1133,19 +1133,6 @@ class ViewController: UIViewController, UIGestureRecognizerDelegate { info.text = text } - func formatNumber(_ value: Float) -> String { - let integerPart = Int(value) - let fractionalPart = value - Float(integerPart) - - if fractionalPart == 0 { - return String(format: "%04d", integerPart) - } else { - // Convert fractional part to string without leading "0" - let fractionalString = String(String(value).split(separator: ".")[1]) - return String(format: "%04d.%@", integerPart, fractionalString) - } - } - func getImagePath(progress: ProgressIndices) -> URL! { let (v, c, i) = (progress.v, progress.c, progress.i) let modernPath = currentPath.appendingPathComponent("images").appendingPathComponent(