summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.console/src/org/eclipse/jgit
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2012-03-09 13:10:14 +0100
committerRobin Rosenberg <robin.rosenberg@dewire.com>2012-03-09 13:30:19 +0100
commitc7f70c05584409c52c00278888a62d72251d7f6d (patch)
tree3b35240a5a721f4df8f06e42b7ff66525497de6b /org.eclipse.jgit.console/src/org/eclipse/jgit
parent3cd7f09eecf849ae6797ed6dd02c88b750eb5d5d (diff)
downloadjgit-c7f70c05584409c52c00278888a62d72251d7f6d.tar.gz
jgit-c7f70c05584409c52c00278888a62d72251d7f6d.zip
cleanup: Remove unused parameter in ConsoleCredentialsProvider
Change-Id: I8d8ab54736c6d57e6211928def8632acb1f5b621
Diffstat (limited to 'org.eclipse.jgit.console/src/org/eclipse/jgit')
-rw-r--r--org.eclipse.jgit.console/src/org/eclipse/jgit/console/ConsoleCredentialsProvider.java16
1 files 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 f8f8ff9bcf..972ce44a4d 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) {