Remove a redundant function

This commit is contained in:
Henrik Rydgård committed 2024-05-22 16:43:18 +02:00
1 parent cc37476c79
commit 538cc62f16
5 files changed
+8 -19

No files matched your search

+3 -7
View File
@@ -37,7 +37,7 @@ NSString *getSelectedCamera() {
if (granted) {
NSLog(@"camera permission granted");
dispatch_async(dispatch_get_main_queue(), ^{
[self startVideo];
[self startVideo:mWidth h:mHeight];
});
} else {
NSLog(@"camera permission denied");
@@ -56,14 +56,10 @@ NSString *getSelectedCamera() {
}
}
-(void) setCameraSize: (int)width h:(int)height {
NSLog(@"CameraHelper::setCameraSize %dx%d", width, height);
-(void) startVideo: (int)width h:(int)height {
NSLog(@"CameraHelper::startVideo %dx%d", width, height);
mWidth = width;
mHeight = height;
}
-(void) startVideo {
NSLog(@"CameraHelper::startVideo");
if ([self checkPermission]) {
return;
}