Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
parveshneedhoo committed Jul 12, 2024
1 parent d586287 commit eb0bd9a
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions src/ios/CameraRenderController.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,6 @@ - (void) viewWillAppear:(BOOL)animated {
});
}

//- (void) viewWillDisappear:(BOOL)animated {
// NSLog(@"HELLO 12");
// [super viewWillDisappear:animated];
// [[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidBecomeActiveNotification object:nil];
// [[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationWillEnterForegroundNotification object:nil];
// [self.view removeFromSuperview];
// [EAGLContext setCurrentContext:nil];
// self.context = nil;
// [self deallocateRenderMemory];
// self.ciContext = nil;
//}

- (void) appplicationIsActive:(NSNotification *)notification {
dispatch_async(self.sessionManager.sessionQueue, ^{
if (!self.sessionManager.session.running){
Expand All @@ -78,10 +66,6 @@ - (void) appplicationIsActive:(NSNotification *)notification {
}

- (void) applicationEnteredForeground:(NSNotification *)notification {
// dispatch_async(self.sessionManager.sessionQueue, ^{
// NSLog(@"Stopping session");
// [self.sessionManager.session stopRunning];
// });
[self.view removeFromSuperview];
[EAGLContext setCurrentContext:nil];
self.context = nil;
Expand Down Expand Up @@ -158,26 +142,6 @@ -(void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMS
}
}

//- (void)viewDidDisappear:(BOOL)animated {
// [super viewDidDisappear:animated];
// NSLog(@"HELLO 14");
// [self.view removeFromSuperview];
// [EAGLContext setCurrentContext:nil];
// self.context = nil;
// [self deallocateRenderMemory];
// self.ciContext = nil;
// CVBufferRelease(_pixelBuffer);
// _pixelBuffer = nil;
//}

//- (void)dealloc {
// NSLog(@"HELLO 15");
// [EAGLContext setCurrentContext:nil];
// self.context = nil;
// [self deallocateRenderMemory];
// self.ciContext = nil;
//}

- (BOOL)shouldAutorotate {
return YES;
}
Expand Down

0 comments on commit eb0bd9a

Please sign in to comment.