Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
pedantic update
Browse files Browse the repository at this point in the history
  • Loading branch information
madsolar8582 committed Sep 29, 2021
1 parent 6c01692 commit 5cdb04f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SLRDNSConfigurator/SLRDNSConfigurator.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ typedef NS_ENUM(NSUInteger, SLRDoTProvider) {
*/
@interface SLRDNSConfigurator : NSObject

- (instancetype)init NS_UNAVAILABLE;

+ (instancetype)new NS_UNAVAILABLE;

/**
* Configures the default @c nw_privacy_context with the specified DNS over HTTPS provider.
* @param provider The DNS over HTTPS provider to use.
Expand Down
12 changes: 12 additions & 0 deletions SLRDNSConfigurator/SLRDNSConfigurator.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@

@implementation SLRDNSConfigurator

#pragma mark - Object Life Cycle

- (instancetype)init __attribute__((noreturn))
{
@throw [NSException exceptionWithName:NSInternalInconsistencyException reason:@"-init is not available on SLRDNSConfigurator" userInfo:nil];
}

+ (instancetype)new __attribute__((noreturn))
{
@throw [NSException exceptionWithName:NSInternalInconsistencyException reason:@"+new is not available on SLRDNSConfigurator" userInfo:nil];
}

#pragma mark - Public API

+ (void)configureDefaultNetworkContextWithDoHProvider:(SLRDoHProvider)provider
Expand Down

0 comments on commit 5cdb04f

Please sign in to comment.