Skip to content

Commit 8d24a5b

Browse files
Comment out unused event code
1 parent 9a71ecd commit 8d24a5b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

AppBox/Common/EventTracker/EventTracker.m

+10-2
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111
@implementation EventTracker
1212

1313
+(void)logScreen:(NSString *)name{
14-
// [NSString stringWithFormat:@"Screen-%@", name]
14+
// NSString *screenName = [NSString stringWithFormat:@"Screen-%@", name];
1515
}
1616

1717
+(void)logEventWithName:(NSString *)eventName customAttributes:(NSDictionary *)attributes {
1818

1919
}
2020

2121
+(void)logEventWithType:(LogEventTypes)eventType{
22+
/*
2223
switch (eventType) {
2324
case LogEventTypeCopyToClipboard:{
2425
NSString *name = @"Copy to Clipboard";
@@ -159,10 +160,12 @@ +(void)logEventWithType:(LogEventTypes)eventType{
159160
default:
160161
break;
161162
}
163+
*/
162164
}
163165

164166
+(void)logEventSettingWithType:(LogEventSettingTypes)eventType andSettings:(NSDictionary *)currentSetting{
165-
switch (eventType) {
167+
/*
168+
switch (eventType) {
166169
case LogEventSettingTypeUploadIPA:{
167170
NSString *name = @"Upload IPA";
168171
}break;
@@ -178,23 +181,28 @@ +(void)logEventSettingWithType:(LogEventSettingTypes)eventType andSettings:(NSDi
178181
default:
179182
break;
180183
}
184+
*/
181185
}
182186

183187
+(void)logExceptionEvent:(NSException *)exception {
188+
/*
184189
NSString *name = @"Exception";
185190
NSDictionary *attributes = @{
186191
@"debug description":exception.debugDescription,
187192
@"stack":exception.callStackSymbols
188193
};
194+
*/
189195
}
190196

191197
+(void)logAppBoxVersion {
198+
/*
192199
DBManager *dbManager = [Common currentDBManager];
193200
NSString *name = @"AppBox Version";
194201
NSDictionary *attributes = @{
195202
@"Version": dbManager.version,
196203
@"Name": dbManager.appName,
197204
@"Identifier": dbManager.bundleId
198205
};
206+
*/
199207
}
200208
@end

0 commit comments

Comments
 (0)