Skip to content

Commit

Permalink
Remove unused imports, fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
russellhancox committed Aug 13, 2024
1 parent b705907 commit da9abdc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Source/santad/DataLayer/SNTRuleTable.mm
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ - (int64_t)cdhashRuleCount {

- (SNTRule *)ruleFromResultSet:(FMResultSet *)rs {
SNTRule *r = [[SNTRule alloc] initWithIdentifier:[rs stringForColumn:@"identifier"]
state:(SNTRuleState)[rs intForColumn:@"state"]
type:(SNTRuleType)[rs intForColumn:@"type"]
state:static_cast<SNTRuleState>([rs intForColumn:@"state"])
type:static_cast<SNTRuleType>([rs intForColumn:@"type"])
customMsg:[rs stringForColumn:@"custommsg"]
timestamp:[rs intForColumn:@"timestamp"]];
r.customURL = [rs stringForColumn:@"customurl"];
Expand Down
2 changes: 1 addition & 1 deletion Source/santad/DataLayer/SNTRuleTableTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
#import <MOLCodesignChecker/MOLCodesignChecker.h>
#import <OCMock/OCMock.h>
#import <XCTest/XCTest.h>
#include "Source/common/SNTCommonEnums.h"

#include "Source/common/SNTCommonEnums.h"
#import "Source/common/SNTConfigurator.h"
#import "Source/common/SNTRule.h"
#import "Source/common/SNTRuleIdentifiers.h"
Expand Down
1 change: 0 additions & 1 deletion Source/santasyncservice/SNTSyncPostflight.mm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#import "Source/common/SNTSyncConstants.h"
#import "Source/common/SNTXPCControlInterface.h"
#import "Source/common/String.h"
#import "Source/santasyncservice/SNTSyncLogging.h"
#import "Source/santasyncservice/SNTSyncState.h"

#include <google/protobuf/arena.h>
Expand Down

0 comments on commit da9abdc

Please sign in to comment.