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

Commit eaea75ec authored by Thomas Stuart's avatar Thomas Stuart
Browse files

remove CallControl#close()

Clients cannot make CallControl a final object inside their
representation of a Call object and therefore auto-closeable cannot be
called.

bug: 265074967
Test: none
Change-Id: Ie91db3a249711703f1665a39c78981ac4deb9317
parent 80a09a11
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -75,17 +75,4 @@ public class CallControlTest extends TelecomTestCase {
                control.setInactive(Runnable::run, result -> {
                }));
    }

    @Test
    public void testClose() {
        // GIVEN
        CallControl control = new CallControl(CALL_ID_1, mICallControl, mRepository, mHandle);

        // WHEN
        control.close();

        // THEN
        verify(mRepository, times(1))
                .removeCallFromServiceWrapper(mHandle, CALL_ID_1);
    }
}