From 95ef280698259e1547964e798be8f4223b7ed4fb Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 18 Aug 2024 19:01:32 -0700 Subject: [PATCH] Delete not-really-needed RSOPMLError. --- .../Sources/ParserObjC/RSOPMLError.h | 19 ---------------- .../Sources/ParserObjC/RSOPMLError.m | 22 ------------------- 2 files changed, 41 deletions(-) delete mode 100755 Modules/ParserObjC/Sources/ParserObjC/RSOPMLError.h delete mode 100755 Modules/ParserObjC/Sources/ParserObjC/RSOPMLError.m diff --git a/Modules/ParserObjC/Sources/ParserObjC/RSOPMLError.h b/Modules/ParserObjC/Sources/ParserObjC/RSOPMLError.h deleted file mode 100755 index 276c62ed7..000000000 --- a/Modules/ParserObjC/Sources/ParserObjC/RSOPMLError.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// RSOPMLError.h -// RSParser -// -// Created by Brent Simmons on 2/28/16. -// Copyright © 2016 Ranchero Software, LLC. All rights reserved. -// - -@import Foundation; - -extern NSString *RSOPMLErrorDomain; - - -typedef NS_ENUM(NSInteger, RSOPMLErrorCode) { - RSOPMLErrorCodeDataIsWrongFormat = 1024 -}; - - -NSError *RSOPMLWrongFormatError(NSString *fileName); diff --git a/Modules/ParserObjC/Sources/ParserObjC/RSOPMLError.m b/Modules/ParserObjC/Sources/ParserObjC/RSOPMLError.m deleted file mode 100755 index 7aa3c5e9d..000000000 --- a/Modules/ParserObjC/Sources/ParserObjC/RSOPMLError.m +++ /dev/null @@ -1,22 +0,0 @@ -// -// RSOPMLError.m -// RSParser -// -// Created by Brent Simmons on 2/28/16. -// Copyright © 2016 Ranchero Software, LLC. All rights reserved. -// - -#import "RSOPMLError.h" - -NSString *RSOPMLErrorDomain = @"com.ranchero.OPML"; - -NSError *RSOPMLWrongFormatError(NSString *fileName) { - - NSString *localizedDescriptionFormatString = NSLocalizedString(@"The file ‘%@’ can’t be parsed because it’s not an OPML file.", @"OPML wrong format"); - NSString *localizedDescription = [NSString stringWithFormat:localizedDescriptionFormatString, fileName]; - - NSString *localizedFailureString = NSLocalizedString(@"The file is not an OPML file.", @"OPML wrong format"); - NSDictionary *userInfo = @{NSLocalizedDescriptionKey: localizedDescription, NSLocalizedFailureReasonErrorKey: localizedFailureString}; - - return [[NSError alloc] initWithDomain:RSOPMLErrorDomain code:RSOPMLErrorCodeDataIsWrongFormat userInfo:userInfo]; -}