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 536de49
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
11 changes: 6 additions & 5 deletions Source/santad/DataLayer/SNTRuleTable.mm
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,12 @@ - (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"]
customMsg:[rs stringForColumn:@"custommsg"]
timestamp:[rs intForColumn:@"timestamp"]];
SNTRule *r =
[[SNTRule alloc] initWithIdentifier:[rs stringForColumn:@"identifier"]
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"];
return r;
}
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 536de49

Please sign in to comment.