Skip to content

Commit

Permalink
feat: remove unused metadata apis
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalwrench committed Mar 26, 2020
1 parent 6a8fa0a commit 6d70689
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Source/Bugsnag.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ @interface BugsnagClient ()
- (void)startListeningForStateChangeNotification:(NSString *_Nonnull)notificationName;
@end

@interface BugsnagMetadata ()
- (NSDictionary *_Nonnull)toDictionary;
@end

@implementation Bugsnag

+ (void)startBugsnagWithApiKey:(NSString *)apiKey {
Expand Down
5 changes: 5 additions & 0 deletions Source/BugsnagClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@ @interface BugsnagConfiguration ()
@property(nonatomic, readwrite, strong) NSMutableSet *plugins;
@end

@interface BugsnagMetadata ()
- (NSDictionary *_Nonnull)toDictionary;
@property(unsafe_unretained) id<BugsnagMetadataDelegate> _Nullable delegate;
@end

@implementation BugsnagClient

@synthesize configuration;
Expand Down
6 changes: 0 additions & 6 deletions Source/BugsnagMetadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@

#import <Foundation/Foundation.h>

@protocol BugsnagMetadataDelegate;

@interface BugsnagMetadata : NSObject <NSMutableCopying>

- (instancetype _Nonnull)initWithDictionary:(NSMutableDictionary *_Nonnull)dict;
Expand Down Expand Up @@ -71,14 +69,10 @@
key:(NSString *_Nonnull)key
NS_SWIFT_NAME(clearMetadata(section:key:));

- (NSDictionary *_Nonnull)toDictionary;

- (void)addAttribute:(NSString *_Nonnull)attributeName
withValue:(id _Nullable)value
toTabWithName:(NSString *_Nonnull)sectionName;

@property(unsafe_unretained) id<BugsnagMetadataDelegate> _Nullable delegate;

/**
* Merge supplied and existing metadata.
*
Expand Down
2 changes: 2 additions & 0 deletions Source/BugsnagMetadata.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@

@interface BugsnagMetadata ()
@property(atomic, strong) NSMutableDictionary *dictionary;
- (NSDictionary *_Nonnull)toDictionary;
@property(unsafe_unretained) id<BugsnagMetadataDelegate> _Nullable delegate;
@end

@implementation BugsnagMetadata
Expand Down
4 changes: 4 additions & 0 deletions Tests/BugsnagEventTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ @interface Bugsnag ()
+ (BugsnagConfiguration *)configuration;
@end

@interface BugsnagMetadata ()
- (NSDictionary *_Nonnull)toDictionary;
@end

@interface BugsnagEventTests : BugsnagBaseUnitTest
@end

Expand Down
2 changes: 2 additions & 0 deletions Tests/BugsnagMetadataTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ @interface BugsnagMetadataTests : XCTestCase <BugsnagMetadataDelegate>

@interface BugsnagMetadata ()
@property(atomic, strong) NSMutableDictionary *dictionary;
- (NSDictionary *_Nonnull)toDictionary;
@property(unsafe_unretained) id<BugsnagMetadataDelegate> _Nullable delegate;
@end

// MARK: - DummyClass
Expand Down

0 comments on commit 6d70689

Please sign in to comment.