remove useless code

This commit is contained in:
TrueZhuanjia
2025-07-06 23:38:00 +08:00
parent e10a296305
commit 07b6aa099b
3 changed files with 0 additions and 14 deletions
-1
View File
@@ -16,7 +16,6 @@
- (void)gamepadPresenceChanged;
- (void)mousePresenceChanged;
- (void)streamExitRequested;
- (void)automaticallyStartSendingGyroEvents;
@end
-8
View File
@@ -1379,13 +1379,6 @@ static const double MOUSE_SPEED_DIVISOR = 1.25;
for(VoidController* controller in _voidControllers.allValues) [self updateTimerStateForController:controller];
break;
}
if(_gyroMode != GyroModeOff){
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)),
dispatch_get_main_queue(), ^{
// [self->_delegate automaticallyStartSendingGyroEvents]; // this will discontine any control events sent to the remote side for a instant. anyway it works out as signature describes
});
}
}
@@ -1577,7 +1570,6 @@ static const double MOUSE_SPEED_DIVISOR = 1.25;
[self updateFinished:self->_oscController];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)),
dispatch_get_main_queue(), ^{
//[self->_delegate automaticallyStartSendingGyroEvents]; // this will discontine any control events sent to the remote side for a instant. anyway it works out as signature describes
[self updateTimerStateForController:self->_oscController];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)),
@@ -219,11 +219,6 @@
NSLog(@"streamview gestures: %d", (uint32_t)[_streamView.gestureRecognizers count]);
}
-(void)automaticallyStartSendingGyroEvents{
[_controllerSupport updateControllerSupport:self.streamConfig delegate:self];// reload controllerSupport obj, this is mandatory for OSC reload,especially when the stream view is launched without OSC
}
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];