Skip to content

Commit

Permalink
[#97] Remove inheritance from NSObject in CRConnectionDelegate pr…
Browse files Browse the repository at this point in the history
…otocol
  • Loading branch information
thecatalinstan committed Sep 15, 2022
1 parent d0aa6ee commit 327d5b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
7 changes: 1 addition & 6 deletions Sources/Criollo/CRConnection.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@
// Created by Cătălin Stan on 10/23/15.
//

#import <Criollo/CRConnection.h>
#import "CRConnection_Internal.h"

#import <Criollo/CRApplication.h>
#import <Criollo/CRRequest.h>
#import <Criollo/CRResponse.h>
#import <Criollo/CRServer.h>
#import <sys/sysctl.h>
#import <sys/types.h>

#import "CocoaAsyncSocket.h"
#import "CRConnection_Internal.h"
#import "CRRequest_Internal.h"
#import "CRResponse_Internal.h"
#import "CRServer_Internal.h"
Expand Down
3 changes: 2 additions & 1 deletion Sources/Criollo/CRConnection_Internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
//

#import <Criollo/CRConnection.h>
#import <Criollo/CRTypes.h>

@import CocoaAsyncSocket;
#import "CocoaAsyncSocket.h"

@class CRServer, CRRequest;

Expand Down
6 changes: 2 additions & 4 deletions Sources/Criollo/Headers/Criollo/CRConnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
// Created by Cătălin Stan on 10/23/15.
//

#import <Criollo/CRTypes.h>
#import <Foundation/Foundation.h>

@class CRConnection, GCDAsyncSocket, CRServer, CRRequest, CRResponse;
@class CRConnection, CRRequest, CRResponse;

NS_ASSUME_NONNULL_BEGIN

// TODO: Remove inheritance from NSObject
@protocol CRConnectionDelegate <NSObject>
@protocol CRConnectionDelegate

- (void)connection:(CRConnection *)connection didReceiveRequest:(CRRequest *)request response:(CRResponse *)response;
- (void)connection:(CRConnection *)connection didFinishRequest:(CRRequest *)request response:(CRResponse *)response;
Expand Down

0 comments on commit 327d5b6

Please sign in to comment.