Skip to content

Commit ad13d90

Browse files
committed
chore: code cleanup
1 parent 151f36a commit ad13d90

File tree

4 files changed

+0
-34
lines changed

4 files changed

+0
-34
lines changed

packages/react-native-callingx/ios/Callingx.mm

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -489,23 +489,6 @@ - (NSString *)getIncomingCallErrorCode:(NSError *)error {
489489
}
490490
}
491491

492-
//- (void)setup:(NSDictionary *)options {
493-
//#ifdef DEBUG
494-
// NSLog(@"[Callingx][setup] options = %@", options);
495-
//#endif
496-
// _version = [[[NSProcessInfo alloc] init] operatingSystemVersion];
497-
// self.callKeepCallController = [[CXCallController alloc] init];
498-
//
499-
// [Settings setSettings:options];
500-
//
501-
// [Callingx initCallKitProvider];
502-
// [Callingx initUUIDStorage];
503-
//
504-
// self.callKeepProvider = sharedProvider;
505-
// [self.callKeepProvider setDelegate:nil queue:nil];
506-
// [self.callKeepProvider setDelegate:self queue:nil];
507-
//}
508-
509492
#pragma mark - Turbo module methods
510493

511494
- (void)setupiOS:(JS::NativeCallingx::SpecSetupiOSOptions &)options {

packages/react-native-callingx/src/EventManager.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@ class EventManager {
5050
this.subscription?.remove();
5151
this.subscription = null;
5252
}
53-
54-
console.log(
55-
'!!! remove listener',
56-
this.listenersCount,
57-
this.subscription === null ? 'null' : 'not null'
58-
);
5953
}
6054
}
6155

packages/react-native-callingx/src/utils/permissions.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,3 @@ export const requestPostNotificationPermissions =
117117
results === PermissionsAndroid.RESULTS.GRANTED || allowedPostNotifications
118118
);
119119
};
120-
121-
export const canPostNotifications = async (): Promise<boolean> => {
122-
if (Platform.OS !== 'android') {
123-
return true;
124-
}
125-
126-
return PermissionsAndroid.check(
127-
PermissionsAndroid.PERMISSIONS.POST_NOTIFICATIONS
128-
);
129-
};

packages/react-native-sdk/src/utils/StreamVideoRN/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ export class StreamVideoRN {
131131
}
132132

133133
static setupCallingExp(options: CallingxOptions) {
134-
//check if calling exp pacakge is installed
135134
const callingx = getCallingxLib();
136135
callingx.setup(options);
137136
callingx.checkPermissions().catch((error) => {

0 commit comments

Comments
 (0)