Skip to content

Commit 9a6a8ae

Browse files
committed
minor clean up: dead code
1 parent 2bfb2e2 commit 9a6a8ae

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

client/src/main/java/org/asynchttpclient/Dsl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ public static Realm.Builder realm(Realm prototype) {
8585
return new Realm.Builder(prototype.getPrincipal(), prototype.getPassword())//
8686
.setRealmName(prototype.getRealmName())//
8787
.setAlgorithm(prototype.getAlgorithm())//
88-
.setMethodName(prototype.getMethodName())//
8988
.setNc(prototype.getNc())//
9089
.setNonce(prototype.getNonce())//
9190
.setCharset(prototype.getCharset())//

client/src/main/java/org/asynchttpclient/Realm.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ public class Realm {
5151
private final String nc;
5252
private final String cnonce;
5353
private final Uri uri;
54-
private final String methodName;
5554
private final boolean usePreemptiveAuth;
5655
private final Charset charset;
5756
private final String ntlmHost;
@@ -60,7 +59,6 @@ public class Realm {
6059
private final boolean omitQuery;
6160

6261
public enum AuthScheme {
63-
6462
BASIC, DIGEST, NTLM, SPNEGO, KERBEROS
6563
}
6664

@@ -76,7 +74,6 @@ private Realm(AuthScheme scheme,//
7674
String nc,//
7775
String cnonce,//
7876
Uri uri,//
79-
String methodName,//
8077
boolean usePreemptiveAuth,//
8178
Charset charset,//
8279
String ntlmDomain,//
@@ -96,7 +93,6 @@ private Realm(AuthScheme scheme,//
9693
this.nc = nc;
9794
this.cnonce = cnonce;
9895
this.uri = uri;
99-
this.methodName = methodName;
10096
this.usePreemptiveAuth = usePreemptiveAuth;
10197
this.charset = charset;
10298
this.ntlmDomain = ntlmDomain;
@@ -157,10 +153,6 @@ public Charset getCharset() {
157153
return charset;
158154
}
159155

160-
public String getMethodName() {
161-
return methodName;
162-
}
163-
164156
/**
165157
* Return true is preemptive authentication is enabled
166158
*
@@ -200,7 +192,7 @@ public boolean isOmitQuery() {
200192
public String toString() {
201193
return "Realm{" + "principal='" + principal + '\'' + ", scheme=" + scheme + ", realmName='" + realmName + '\'' + ", nonce='" + nonce + '\'' + ", algorithm='" + algorithm
202194
+ '\'' + ", response='" + response + '\'' + ", qop='" + qop + '\'' + ", nc='" + nc + '\'' + ", cnonce='" + cnonce + '\'' + ", uri='" + uri + '\''
203-
+ ", methodName='" + methodName + '\'' + ", useAbsoluteURI='" + useAbsoluteURI + '\'' + ", omitQuery='" + omitQuery + '\'' + '}';
195+
+ ", useAbsoluteURI='" + useAbsoluteURI + '\'' + ", omitQuery='" + omitQuery + '\'' + '}';
204196
}
205197

206198
/**
@@ -503,7 +495,6 @@ public Realm build() {
503495
nc, //
504496
cnonce, //
505497
uri, //
506-
methodName, //
507498
usePreemptive, //
508499
charset, //
509500
ntlmDomain,//

0 commit comments

Comments
 (0)