From 93cff25e6f2d0ada445a6cfbe8e0dfd260fc5cbf Mon Sep 17 00:00:00 2001 From: Kent Sutherland Date: Mon, 4 May 2020 19:02:41 -0500 Subject: [PATCH] Remove @import from framework headers Xcode 11.4 turns on -Watimport-in-framework-header by default which causes this to warn --- Sparkle/SPUDownloadData.h | 5 ----- Sparkle/SPUStandardUpdaterController.h | 5 ----- Sparkle/SPUStandardUserDriver.h | 5 ----- Sparkle/SPUStandardUserDriverDelegate.h | 5 ----- Sparkle/SPUStatusCompletionResults.h | 4 ---- Sparkle/SPUUpdatePermissionRequest.h | 5 ----- Sparkle/SPUUpdater.h | 4 ---- Sparkle/SPUUpdaterDelegate.h | 5 ----- Sparkle/SPUUpdaterSettings.h | 5 ----- Sparkle/SPUUserDriver.h | 5 ----- Sparkle/SPUUserDriverCoreComponent.h | 5 ----- Sparkle/SUAppcast.h | 4 ---- Sparkle/SUAppcastItem.h | 4 ---- Sparkle/SUErrors.h | 4 ---- Sparkle/SUStandardVersionComparator.h | 4 ---- Sparkle/SUUpdatePermissionResponse.h | 5 ----- Sparkle/SUUpdater.h | 4 ---- Sparkle/SUUpdaterDelegate.h | 5 ----- Sparkle/SUVersionComparisonProtocol.h | 5 ----- Sparkle/SUVersionDisplayProtocol.h | 5 ----- 20 files changed, 93 deletions(-) diff --git a/Sparkle/SPUDownloadData.h b/Sparkle/SPUDownloadData.h index a316fc4d..fb9344c1 100644 --- a/Sparkle/SPUDownloadData.h +++ b/Sparkle/SPUDownloadData.h @@ -6,12 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -@import Foundation; -#else #import -#endif - #import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUStandardUpdaterController.h b/Sparkle/SPUStandardUpdaterController.h index b2916bb8..4ac52f2f 100644 --- a/Sparkle/SPUStandardUpdaterController.h +++ b/Sparkle/SPUStandardUpdaterController.h @@ -6,12 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -@import Cocoa; -#else #import -#endif - #import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUStandardUserDriver.h b/Sparkle/SPUStandardUserDriver.h index f04ce4e0..6bf3fcf6 100644 --- a/Sparkle/SPUStandardUserDriver.h +++ b/Sparkle/SPUStandardUserDriver.h @@ -6,12 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -@import Cocoa; -#else #import -#endif - #import #import #import diff --git a/Sparkle/SPUStandardUserDriverDelegate.h b/Sparkle/SPUStandardUserDriverDelegate.h index 710023ed..f1facf81 100644 --- a/Sparkle/SPUStandardUserDriverDelegate.h +++ b/Sparkle/SPUStandardUserDriverDelegate.h @@ -6,12 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -@import Foundation; -#else #import -#endif - #import @protocol SUVersionDisplay; diff --git a/Sparkle/SPUStatusCompletionResults.h b/Sparkle/SPUStatusCompletionResults.h index f16a1a2a..fdf44398 100644 --- a/Sparkle/SPUStatusCompletionResults.h +++ b/Sparkle/SPUStatusCompletionResults.h @@ -9,11 +9,7 @@ #ifndef SPUStatusCompletionResults_h #define SPUStatusCompletionResults_h -#if __has_feature(modules) -@import Foundation; -#else #import -#endif typedef NS_ENUM(NSUInteger, SPUUserInitiatedCheckStatus) { SPUUserInitiatedCheckDone, diff --git a/Sparkle/SPUUpdatePermissionRequest.h b/Sparkle/SPUUpdatePermissionRequest.h index 8d5af6e5..36cccefe 100644 --- a/Sparkle/SPUUpdatePermissionRequest.h +++ b/Sparkle/SPUUpdatePermissionRequest.h @@ -6,12 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -@import Foundation; -#else #import -#endif - #import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUUpdater.h b/Sparkle/SPUUpdater.h index 14879ff1..4c5b1bf0 100644 --- a/Sparkle/SPUUpdater.h +++ b/Sparkle/SPUUpdater.h @@ -6,11 +6,7 @@ // Copyright 2006 Andy Matuschak. All rights reserved. // -#if __has_feature(modules) -@import Foundation; -#else #import -#endif #import #import diff --git a/Sparkle/SPUUpdaterDelegate.h b/Sparkle/SPUUpdaterDelegate.h index 51341f8e..bc3ee8ff 100644 --- a/Sparkle/SPUUpdaterDelegate.h +++ b/Sparkle/SPUUpdaterDelegate.h @@ -6,12 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -@import Foundation; -#else #import -#endif - #import @protocol SUVersionComparison; diff --git a/Sparkle/SPUUpdaterSettings.h b/Sparkle/SPUUpdaterSettings.h index 3e3c3f1a..371d5139 100644 --- a/Sparkle/SPUUpdaterSettings.h +++ b/Sparkle/SPUUpdaterSettings.h @@ -6,12 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -@import Foundation; -#else #import -#endif - #import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUUserDriver.h b/Sparkle/SPUUserDriver.h index 89e84156..4295d11c 100644 --- a/Sparkle/SPUUserDriver.h +++ b/Sparkle/SPUUserDriver.h @@ -6,12 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -@import Foundation; -#else #import -#endif - #import #import diff --git a/Sparkle/SPUUserDriverCoreComponent.h b/Sparkle/SPUUserDriverCoreComponent.h index 9e16e0da..157196ab 100644 --- a/Sparkle/SPUUserDriverCoreComponent.h +++ b/Sparkle/SPUUserDriverCoreComponent.h @@ -6,12 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -@import Foundation; -#else #import -#endif - #import #import diff --git a/Sparkle/SUAppcast.h b/Sparkle/SUAppcast.h index f34dfa3e..b21e59c9 100644 --- a/Sparkle/SUAppcast.h +++ b/Sparkle/SUAppcast.h @@ -9,11 +9,7 @@ #ifndef SUAPPCAST_H #define SUAPPCAST_H -#if __has_feature(modules) -@import Foundation; -#else #import -#endif #import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SUAppcastItem.h b/Sparkle/SUAppcastItem.h index 52d2a33c..4c01147a 100644 --- a/Sparkle/SUAppcastItem.h +++ b/Sparkle/SUAppcastItem.h @@ -9,11 +9,7 @@ #ifndef SUAPPCASTITEM_H #define SUAPPCASTITEM_H -#if __has_feature(modules) -@import Foundation; -#else #import -#endif #import SU_EXPORT @interface SUAppcastItem : NSObject diff --git a/Sparkle/SUErrors.h b/Sparkle/SUErrors.h index 66f59364..02e504b7 100644 --- a/Sparkle/SUErrors.h +++ b/Sparkle/SUErrors.h @@ -9,11 +9,7 @@ #ifndef SUERRORS_H #define SUERRORS_H -#if __has_feature(modules) -@import Foundation; -#else #import -#endif #import /** diff --git a/Sparkle/SUStandardVersionComparator.h b/Sparkle/SUStandardVersionComparator.h index cf7093b1..1190d12c 100644 --- a/Sparkle/SUStandardVersionComparator.h +++ b/Sparkle/SUStandardVersionComparator.h @@ -9,11 +9,7 @@ #ifndef SUSTANDARDVERSIONCOMPARATOR_H #define SUSTANDARDVERSIONCOMPARATOR_H -#if __has_feature(modules) -@import Foundation; -#else #import -#endif #import #import diff --git a/Sparkle/SUUpdatePermissionResponse.h b/Sparkle/SUUpdatePermissionResponse.h index e9fe947d..bbe6633d 100644 --- a/Sparkle/SUUpdatePermissionResponse.h +++ b/Sparkle/SUUpdatePermissionResponse.h @@ -6,12 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -@import Foundation; -#else #import -#endif - #import /*! diff --git a/Sparkle/SUUpdater.h b/Sparkle/SUUpdater.h index eae3405d..c2a1b309 100644 --- a/Sparkle/SUUpdater.h +++ b/Sparkle/SUUpdater.h @@ -9,11 +9,7 @@ #ifndef SUUPDATER_H #define SUUPDATER_H -#if __has_feature(modules) -@import Cocoa; -#else #import -#endif #import #import #import diff --git a/Sparkle/SUUpdaterDelegate.h b/Sparkle/SUUpdaterDelegate.h index 52aa9b6f..f50bb3ec 100644 --- a/Sparkle/SUUpdaterDelegate.h +++ b/Sparkle/SUUpdaterDelegate.h @@ -6,12 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -@import Foundation; -#else #import -#endif - #import @protocol SUVersionComparison, SUVersionDisplay; diff --git a/Sparkle/SUVersionComparisonProtocol.h b/Sparkle/SUVersionComparisonProtocol.h index afa11f7c..62bdd0d5 100644 --- a/Sparkle/SUVersionComparisonProtocol.h +++ b/Sparkle/SUVersionComparisonProtocol.h @@ -9,12 +9,7 @@ #ifndef SUVERSIONCOMPARISONPROTOCOL_H #define SUVERSIONCOMPARISONPROTOCOL_H -#if __has_feature(modules) -@import Foundation; -#else #import -#endif - #import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SUVersionDisplayProtocol.h b/Sparkle/SUVersionDisplayProtocol.h index b3bf3f7b..2efc4e7d 100644 --- a/Sparkle/SUVersionDisplayProtocol.h +++ b/Sparkle/SUVersionDisplayProtocol.h @@ -6,12 +6,7 @@ // Copyright 2009 Elgato Systems GmbH. All rights reserved. // -#if __has_feature(modules) -@import Foundation; -#else #import -#endif - #import /*!