diff --git a/server/src/main/java/org/elasticsearch/bootstrap/Security.java b/server/src/main/java/org/elasticsearch/bootstrap/Security.java index b477e45ba37..b198dee9794 100644 --- a/server/src/main/java/org/elasticsearch/bootstrap/Security.java +++ b/server/src/main/java/org/elasticsearch/bootstrap/Security.java @@ -29,7 +29,6 @@ import org.elasticsearch.plugins.PluginInfo; import org.elasticsearch.plugins.PluginsService; import org.elasticsearch.secure_sm.SecureSM; import org.elasticsearch.transport.TcpTransport; -import org.elasticsearch.transport.TransportSettings; import java.io.IOException; import java.net.SocketPermission; @@ -362,17 +361,6 @@ final class Security { } } - /** - * Add dynamic {@link SocketPermission} based on transport settings. - * - * @param policy the {@link Permissions} instance to apply the dynamic {@link SocketPermission}s to - * @param settings the {@link Settings} instance to read the transport settings from - */ - private static void addSocketPermissionForTransport(final Permissions policy, final Settings settings) { - final String transportRange = TransportSettings.PORT.get(settings); - addSocketPermissionForPortRange(policy, transportRange); - } - /** * Add dynamic {@link SocketPermission} for the specified port range. *