Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34acc1aa authored by Santiago Seifert's avatar Santiago Seifert
Browse files

Inline and remove redundant method

And remove TODO.

Bug: 205124386
Test: Presubmit (should be trivially correct).
Change-Id: I9a445f5a6dca4cbaa41b11464c1c0e2d068f95ec
parent d649dcaf
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -2700,11 +2700,8 @@ class MediaRouter2ServiceImpl {
                // session info from them.
                sessionInfo = mSystemProvider.getDefaultSessionInfo();
            }
            // TODO: b/279555229 - replace with matchingRequest.mRouterRecord.notifySessionCreated.
            notifySessionCreatedToRouter(
                    matchingRequest.mRouterRecord,
                    toOriginalRequestId(uniqueRequestId),
                    sessionInfo);
            matchingRequest.mRouterRecord.notifySessionCreated(
                    toOriginalRequestId(uniqueRequestId), sessionInfo);
        }

        private void onSessionInfoChangedOnHandler(@NonNull MediaRoute2Provider provider,
@@ -2812,11 +2809,6 @@ class MediaRouter2ServiceImpl {
            return true;
        }

        private void notifySessionCreatedToRouter(@NonNull RouterRecord routerRecord,
                int requestId, @NonNull RoutingSessionInfo sessionInfo) {
            routerRecord.notifySessionCreated(requestId, sessionInfo);
        }

        private void notifySessionCreationFailedToRouter(@NonNull RouterRecord routerRecord,
                int requestId) {
            try {