From e0e5b10a347343101aa83eb8fed733921ddbd23d Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Wed, 5 Mar 2025 17:13:28 -0500 Subject: [PATCH] feat: Removes unused files. --- .../ApiController/Extensions/Double+ensurePositive.swift | 9 --------- .../ApiController/Extensions/HVACSystemPerformance.swift | 4 ---- 2 files changed, 13 deletions(-) delete mode 100644 Sources/ApiController/Extensions/Double+ensurePositive.swift diff --git a/Sources/ApiController/Extensions/Double+ensurePositive.swift b/Sources/ApiController/Extensions/Double+ensurePositive.swift deleted file mode 100644 index a995b2d..0000000 --- a/Sources/ApiController/Extensions/Double+ensurePositive.swift +++ /dev/null @@ -1,9 +0,0 @@ -import Foundation - -extension Double { - - func ensurePostive() -> Self { - if self < 0 { return self * -1 } - return self - } -} diff --git a/Sources/ApiController/Extensions/HVACSystemPerformance.swift b/Sources/ApiController/Extensions/HVACSystemPerformance.swift index 33e7905..b8bee4f 100644 --- a/Sources/ApiController/Extensions/HVACSystemPerformance.swift +++ b/Sources/ApiController/Extensions/HVACSystemPerformance.swift @@ -85,8 +85,4 @@ public extension HVACSystemPerformance.Request { throw ValidationError(message: "System size should be greater than 0.") } } - - struct ValidationError: Error { - let message: String - } }