Skip to content

Commit

Permalink
MINOR: Remove Deadcode in X-Pack Tests (elastic#34511)
Browse files Browse the repository at this point in the history
  • Loading branch information
original-brownbear authored Oct 16, 2018
1 parent 0b4e8db commit b3be96a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,16 +246,6 @@ public void addClientSSLSettings(Settings.Builder builder, String prefix) {
}
}

/**
* Returns the configuration settings given the location of a certificate and its password
*
* @param resourcePathToStore the location of the keystore or truststore
* @param password the password
*/
public static void addSSLSettingsForStore(Settings.Builder builder, String resourcePathToStore, String password) {
addSSLSettingsForStore(builder, "", resourcePathToStore, password, true, true, true);
}

private static void addSSLSettingsForStore(Settings.Builder builder, String prefix, String resourcePathToStore, String password,
boolean sslEnabled, boolean hostnameVerificationEnabled,
boolean transportClient) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,6 @@ public void testUserSearchWithBindUserOpenLDAP() throws Exception {
}
}

private MockSecureSettings newSecureSettings(String key, String value) {
MockSecureSettings secureSettings = new MockSecureSettings();
secureSettings.setString(key, value);
return secureSettings;
}

private LdapSession session(SessionFactory factory, String username, SecureString password) {
PlainActionFuture<LdapSession> future = new PlainActionFuture<>();
factory.session(username, password, future);
Expand Down

0 comments on commit b3be96a

Please sign in to comment.