From eb0bd9a94af617a76149a83bcfa2a968fc7b8408 Mon Sep 17 00:00:00 2001 From: parveshneedhoo Date: Fri, 12 Jul 2024 10:55:09 +0400 Subject: [PATCH] remove commented code --- src/ios/CameraRenderController.m | 36 -------------------------------- 1 file changed, 36 deletions(-) diff --git a/src/ios/CameraRenderController.m b/src/ios/CameraRenderController.m index 9f288a4..9c992f1 100644 --- a/src/ios/CameraRenderController.m +++ b/src/ios/CameraRenderController.m @@ -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){ @@ -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; @@ -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; }