From 78b6b1615ce3eabad700d9bc94dd8cbff45cc4dc Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Sat, 15 Aug 2020 15:03:21 +0800 Subject: [PATCH] Delete ReleaseNotes.swift --- .../Shared/Release Notes/ReleaseNotes.swift | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 Multiplatform/Shared/Release Notes/ReleaseNotes.swift diff --git a/Multiplatform/Shared/Release Notes/ReleaseNotes.swift b/Multiplatform/Shared/Release Notes/ReleaseNotes.swift deleted file mode 100644 index 592aeeebb..000000000 --- a/Multiplatform/Shared/Release Notes/ReleaseNotes.swift +++ /dev/null @@ -1,29 +0,0 @@ -// -// ReleaseNotes.swift -// NetNewsWire -// -// Created by Stuart Breckenridge on 13/8/20. -// Copyright © 2020 Ranchero Software. All rights reserved. -// - -import Foundation - -struct ReleaseNotes { - - @available(*, unavailable, message: "Use URL.releaseNotes") - var url: URL { - var gitHub = "https://github.com/Ranchero-Software/NetNewsWire/releases/tag/" - #if os(macOS) - gitHub += "mac-\(String(describing: versionString()))" - return URL(string: gitHub)! - #else - gitHub += "ios-\(String(describing: versionString()))" - return URL(string: gitHub)! - #endif - } - - private func versionString() -> String { - Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "" - } - -}