From 524761c50f74b292932153b7322a5bb8d481a7de Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Mon, 6 Apr 2020 17:35:28 -0700 Subject: [PATCH] Remove -[SUPublicKeys isEqualToKey:] It's been broken since 2018, and we suspect no one's using it anyway. --- Sparkle/SUSignatures.h | 1 - Sparkle/SUSignatures.m | 9 --------- 2 files changed, 10 deletions(-) diff --git a/Sparkle/SUSignatures.h b/Sparkle/SUSignatures.h index 270c80c3..402dd160 100644 --- a/Sparkle/SUSignatures.h +++ b/Sparkle/SUSignatures.h @@ -33,7 +33,6 @@ NS_ASSUME_NONNULL_BEGIN @property (readonly, nullable, nonatomic) const unsigned char *ed25519PubKey; - (instancetype)initWithDsa:(NSString * _Nullable)dsa ed:(NSString * _Nullable)ed; -- (BOOL) isEqualToKey:(SUPublicKeys *)key; @end diff --git a/Sparkle/SUSignatures.m b/Sparkle/SUSignatures.m index c8935761..3d8aedbe 100644 --- a/Sparkle/SUSignatures.m +++ b/Sparkle/SUSignatures.m @@ -112,15 +112,6 @@ static NSData *decode(NSString *str) { return self; } -- (BOOL) isEqualToKey:(SUPublicKeys *)key { - NSString *thisKey = self.dsaPubKey; - NSString *thatKey = key.dsaPubKey; - if (thisKey == nil || thatKey == nil) { - return NO; - } - return NO; -} - - (const unsigned char *)ed25519PubKey { // Xcode may enable this in pedantic mode