-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: cleaning up the unnecessary functions #708
base: main
Are you sure you want to change the base?
Conversation
@@ -566,7 +558,7 @@ impl AppLauncher { | |||
}, | |||
runtime: Some(AppRuntime { | |||
id: Some(callsign), | |||
transport: Self::get_transport(bool_contract, &manifest.start_page), | |||
transport: AppRuntimeTransport::Websocket, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just get rid of the AppRuntimeTransport
enum altogether since it's no longer needed, that will then let you also get rid of EffectiveTransport
and even more code.
@@ -1062,23 +1018,10 @@ impl DelegatedLauncherHandler { | |||
async fn end_session(&mut self, app_id: &str) -> Result<AppManagerResponse, AppError> { | |||
debug!("end_session: entry: app_id={}", app_id); | |||
let app = self.platform_state.app_manager_state.remove(app_id); | |||
if let Some(app) = app { | |||
if let Some(_app) = app { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could just be if app.is_some() {
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
thunder_device_info::ThunderDeviceInfoRequestProcessor, | ||
thunder_events::ThunderOpenEventsProcessor, | ||
thunder_persistent_store::ThunderStorageRequestProcessor, | ||
thunder_remote::ThunderRemoteAccessoryRequestProcessor, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you also remove the code for the processors we no longer add on start-up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
Minimum allowed line rate is |
What
removes unnecessary function code
Why
code is not used anywhere
How
cleanup the unnecessary functions in Ripple
Test
How has this been tested? How can a reviewer test it?
Checklist