Skip to content

Commit 106e3c8

Browse files
author
Julian Kast
committed
Remove unused logic in unit test
1 parent 74b62a9 commit 106e3c8

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

android/sdl_android/src/androidTest/java/com/smartdevicelink/managers/screen/menu/VoiceCommandUpdateOperationTests.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import com.smartdevicelink.proxy.rpc.AddCommandResponse;
99
import com.smartdevicelink.proxy.rpc.DeleteCommand;
1010
import com.smartdevicelink.proxy.rpc.DeleteCommandResponse;
11-
import com.smartdevicelink.proxy.rpc.ListFiles;
1211
import com.smartdevicelink.proxy.rpc.listeners.OnMultipleRequestListener;
1312
import com.smartdevicelink.util.DebugTool;
1413

@@ -76,20 +75,6 @@ public void onVoiceCommandSelected() {
7675
List<VoiceCommand> deleteList = new ArrayList<>();
7776
List<VoiceCommand> addList = new ArrayList<>();
7877

79-
private Answer<Void> onListFilesSuccess = new Answer<Void>() {
80-
@Override
81-
public Void answer(InvocationOnMock invocation) {
82-
Object[] args = invocation.getArguments();
83-
RPCRequest message = (RPCRequest) args[0];
84-
if (message instanceof ListFiles) {
85-
int correlationId = message.getCorrelationID();
86-
DeleteCommandResponse deleteCommandResponse = new DeleteCommandResponse();
87-
deleteCommandResponse.setSuccess(true);
88-
message.getOnRPCResponseListener().onResponse(correlationId, deleteCommandResponse);
89-
}
90-
return null;
91-
}
92-
};
9378

9479
@Before
9580
public void setup() {

0 commit comments

Comments
 (0)