From 63b09c5b27fc2b4d145ec5a64b8941f3409628d8 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 27 Apr 2019 14:00:58 -0700 Subject: [PATCH] Remove the old message callbacks --- Limelight/Stream/Connection.h | 2 -- Limelight/Stream/Connection.m | 12 ------------ .../ViewControllers/StreamFrameViewController.m | 8 -------- 3 files changed, 22 deletions(-) diff --git a/Limelight/Stream/Connection.h b/Limelight/Stream/Connection.h index b62a3a22..aa6852fb 100644 --- a/Limelight/Stream/Connection.h +++ b/Limelight/Stream/Connection.h @@ -17,8 +17,6 @@ - (void) stageComplete:(const char*)stageName; - (void) stageFailed:(const char*)stageName withError:(long)errorCode; - (void) launchFailed:(NSString*)message; -- (void) displayMessage:(const char*)message; -- (void) displayTransientMessage:(const char*)message; - (void) rumble:(unsigned short)controllerNumber lowFreqMotor:(unsigned short)lowFreqMotor highFreqMotor:(unsigned short)highFreqMotor; @end diff --git a/Limelight/Stream/Connection.m b/Limelight/Stream/Connection.m index df16755e..eba75feb 100644 --- a/Limelight/Stream/Connection.m +++ b/Limelight/Stream/Connection.m @@ -225,16 +225,6 @@ void ClConnectionTerminated(long errorCode) [_callbacks connectionTerminated: errorCode]; } -void ClDisplayMessage(const char* message) -{ - [_callbacks displayMessage: message]; -} - -void ClDisplayTransientMessage(const char* message) -{ - [_callbacks displayTransientMessage: message]; -} - void ClLogMessage(const char* format, ...) { va_list va; @@ -377,8 +367,6 @@ void ClRumble(unsigned short controllerNumber, unsigned short lowFreqMotor, unsi _clCallbacks.stageFailed = ClStageFailed; _clCallbacks.connectionStarted = ClConnectionStarted; _clCallbacks.connectionTerminated = ClConnectionTerminated; - _clCallbacks.displayMessage = ClDisplayMessage; - _clCallbacks.displayTransientMessage = ClDisplayTransientMessage; _clCallbacks.logMessage = ClLogMessage; _clCallbacks.rumble = ClRumble; diff --git a/Limelight/ViewControllers/StreamFrameViewController.m b/Limelight/ViewControllers/StreamFrameViewController.m index 8f03929d..332b4e56 100644 --- a/Limelight/ViewControllers/StreamFrameViewController.m +++ b/Limelight/ViewControllers/StreamFrameViewController.m @@ -258,14 +258,6 @@ }); } -- (void) displayMessage:(const char*)message { - Log(LOG_I, @"Display message: %s", message); -} - -- (void) displayTransientMessage:(const char*)message { - Log(LOG_I, @"Display transient message: %s", message); -} - - (void)rumble:(unsigned short)controllerNumber lowFreqMotor:(unsigned short)lowFreqMotor highFreqMotor:(unsigned short)highFreqMotor { Log(LOG_I, @"Rumble on gamepad %d: %04x %04x", controllerNumber, lowFreqMotor, highFreqMotor);