TunnelEditor: Remove unused parameter

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2018-05-03 23:12:18 +05:30 committed by Samuel Holland
parent 59aa3035a8
commit 37413f2fb4

View File

@ -135,7 +135,7 @@ public class TunnelEditorFragment extends BaseFragment {
} else if (!tunnel.getName().equals(binding.getConfig().getName())) { } else if (!tunnel.getName().equals(binding.getConfig().getName())) {
Log.d(TAG, "Attempting to rename tunnel to " + binding.getConfig().getName()); Log.d(TAG, "Attempting to rename tunnel to " + binding.getConfig().getName());
tunnel.setName(binding.getConfig().getName()) tunnel.setName(binding.getConfig().getName())
.whenComplete((a, b) -> onTunnelRenamed(tunnel, newConfig, a, b)); .whenComplete((a, b) -> onTunnelRenamed(tunnel, newConfig, b));
} else { } else {
Log.d(TAG, "Attempting to save config of " + tunnel.getName()); Log.d(TAG, "Attempting to save config of " + tunnel.getName());
tunnel.setConfig(newConfig) tunnel.setConfig(newConfig)
@ -183,7 +183,7 @@ public class TunnelEditorFragment extends BaseFragment {
} }
private void onTunnelRenamed(final Tunnel renamedTunnel, final Config newConfig, private void onTunnelRenamed(final Tunnel renamedTunnel, final Config newConfig,
final String name, final Throwable throwable) { final Throwable throwable) {
final String message; final String message;
if (throwable == null) { if (throwable == null) {
message = getString(R.string.tunnel_rename_success, renamedTunnel.getName()); message = getString(R.string.tunnel_rename_success, renamedTunnel.getName());