remove unused function: formatNumber

This commit is contained in:
2026-02-27 01:44:35 +01:00
parent 26fd547160
commit d11ea5421f

View File

@@ -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(