From c7f70c05584409c52c00278888a62d72251d7f6d Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Fri, 9 Mar 2012 13:10:14 +0100 Subject: [PATCH] cleanup: Remove unused parameter in ConsoleCredentialsProvider Change-Id: I8d8ab54736c6d57e6211928def8632acb1f5b621 --- .../jgit/console/ConsoleCredentialsProvider.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/org.eclipse.jgit.console/src/org/eclipse/jgit/console/ConsoleCredentialsProvider.java b/org.eclipse.jgit.console/src/org/eclipse/jgit/console/ConsoleCredentialsProvider.java index f8f8ff9bc..972ce44a4 100644 --- a/org.eclipse.jgit.console/src/org/eclipse/jgit/console/ConsoleCredentialsProvider.java +++ b/org.eclipse.jgit.console/src/org/eclipse/jgit/console/ConsoleCredentialsProvider.java @@ -99,16 +99,16 @@ public class ConsoleCredentialsProvider extends CredentialsProvider { CredentialItem item = items[i]; if (item instanceof CredentialItem.StringType) - ok = get(uri, (CredentialItem.StringType) item); + ok = get((CredentialItem.StringType) item); else if (item instanceof CredentialItem.CharArrayType) - ok = get(uri, (CredentialItem.CharArrayType) item); + ok = get((CredentialItem.CharArrayType) item); else if (item instanceof CredentialItem.YesNoType) - ok = get(uri, (CredentialItem.YesNoType) item); + ok = get((CredentialItem.YesNoType) item); else if (item instanceof CredentialItem.InformationalMessage) - ok = get(uri, (CredentialItem.InformationalMessage) item); + ok = get((CredentialItem.InformationalMessage) item); else throw new UnsupportedCredentialItem(uri, item.getPromptText()); @@ -116,7 +116,7 @@ public class ConsoleCredentialsProvider extends CredentialsProvider { return ok; } - private boolean get(URIish uri, CredentialItem.StringType item) { + private boolean get(CredentialItem.StringType item) { if (item.isValueSecure()) { char[] v = cons.readPassword("%s: ", item.getPromptText()); if (v != null) { @@ -136,7 +136,7 @@ public class ConsoleCredentialsProvider extends CredentialsProvider { } } - private boolean get(URIish uri, CredentialItem.CharArrayType item) { + private boolean get(CredentialItem.CharArrayType item) { if (item.isValueSecure()) { char[] v = cons.readPassword("%s: ", item.getPromptText()); if (v != null) { @@ -156,13 +156,13 @@ public class ConsoleCredentialsProvider extends CredentialsProvider { } } - private boolean get(URIish uri, CredentialItem.InformationalMessage item) { + private boolean get(CredentialItem.InformationalMessage item) { cons.printf("%s\n", item.getPromptText()); cons.flush(); return true; } - private boolean get(URIish uri, CredentialItem.YesNoType item) { + private boolean get(CredentialItem.YesNoType item) { String r = cons.readLine("%s [%s/%s]? ", item.getPromptText(), ConsoleText.get().answerYes, ConsoleText.get().answerNo); if (r != null) {