From 510f0b20ec0a5499b624bc9608928ed20a166bf2 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 2 Feb 2025 10:44:04 -0800 Subject: [PATCH] Delete some unused code. --- .../RSCore/Sources/RSCore/PropertyList.swift | 31 ------------------- 1 file changed, 31 deletions(-) delete mode 100644 Modules/RSCore/Sources/RSCore/PropertyList.swift diff --git a/Modules/RSCore/Sources/RSCore/PropertyList.swift b/Modules/RSCore/Sources/RSCore/PropertyList.swift deleted file mode 100644 index 5d94a620b..000000000 --- a/Modules/RSCore/Sources/RSCore/PropertyList.swift +++ /dev/null @@ -1,31 +0,0 @@ -// -// PropertyList.swift -// RSCore -// -// Created by Brent Simmons on 7/12/17. -// Copyright © 2017 Ranchero Software, LLC. All rights reserved. -// - -import Foundation - -// These functions eat errors. - -public func propertyList(withData data: Data) -> Any? { - - do { - return try PropertyListSerialization.propertyList(from: data, options: [], format: nil) - } catch { - return nil - } -} - -// Create a binary plist. - -public func data(withPropertyList plist: Any) -> Data? { - - do { - return try PropertyListSerialization.data(fromPropertyList: plist, format: .binary, options: 0) - } catch { - return nil - } -}