From 37413f2fb43718eea489e2d7f7bb01d7763028f3 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 3 May 2018 23:12:18 +0530 Subject: [PATCH] TunnelEditor: Remove unused parameter Signed-off-by: Harsh Shandilya --- .../com/wireguard/android/fragment/TunnelEditorFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java b/app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java index 482ab616..3eb98584 100644 --- a/app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java +++ b/app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java @@ -135,7 +135,7 @@ public class TunnelEditorFragment extends BaseFragment { } else if (!tunnel.getName().equals(binding.getConfig().getName())) { Log.d(TAG, "Attempting to rename tunnel to " + binding.getConfig().getName()); tunnel.setName(binding.getConfig().getName()) - .whenComplete((a, b) -> onTunnelRenamed(tunnel, newConfig, a, b)); + .whenComplete((a, b) -> onTunnelRenamed(tunnel, newConfig, b)); } else { Log.d(TAG, "Attempting to save config of " + tunnel.getName()); tunnel.setConfig(newConfig) @@ -183,7 +183,7 @@ public class TunnelEditorFragment extends BaseFragment { } private void onTunnelRenamed(final Tunnel renamedTunnel, final Config newConfig, - final String name, final Throwable throwable) { + final Throwable throwable) { final String message; if (throwable == null) { message = getString(R.string.tunnel_rename_success, renamedTunnel.getName());