diff --git a/server/src/main/java/org/elasticsearch/bootstrap/Spawner.java b/server/src/main/java/org/elasticsearch/bootstrap/Spawner.java index 8337500f73a..f1c6c36dc5c 100644 --- a/server/src/main/java/org/elasticsearch/bootstrap/Spawner.java +++ b/server/src/main/java/org/elasticsearch/bootstrap/Spawner.java @@ -72,13 +72,9 @@ final class Spawner implements Closeable { List paths = PluginsService.findPluginDirs(environment.modulesFile()); for (final Path modules : paths) { final PluginInfo info = PluginInfo.readFromProperties(modules); - Path spawnPath = Platforms.nativeControllerPath(modules); + final Path spawnPath = Platforms.nativeControllerPath(modules); if (!Files.isRegularFile(spawnPath)) { - // TODO: remove before release and just continue if the controller is not in the standard place - spawnPath = Platforms.fallbackNativeControllerPath(modules); - if (spawnPath == null || Files.isRegularFile(spawnPath) == false) { - continue; - } + continue; } if (!info.hasNativeController()) { final String message = String.format( diff --git a/server/src/main/java/org/elasticsearch/plugins/Platforms.java b/server/src/main/java/org/elasticsearch/plugins/Platforms.java index 8a374701b6e..57186acceee 100644 --- a/server/src/main/java/org/elasticsearch/plugins/Platforms.java +++ b/server/src/main/java/org/elasticsearch/plugins/Platforms.java @@ -54,25 +54,6 @@ public class Platforms { .resolve(PROGRAM_NAME); } - /** - * The fallback path to the native controller for a plugin with native - * components to be used if no program is found using the standard path. - * This is a temporary measure to allow developers not working on this - * functionality to continue to work with C++ bundles from before or - * after the change. This code should never be in a supported release. - * TODO: remove this method before release - */ - public static Path fallbackNativeControllerPath(Path plugin) { - if (Constants.MAC_OS_X) { - return plugin - .resolve("platform") - .resolve(PLATFORM_NAME) - .resolve("bin") - .resolve(PROGRAM_NAME); - } - return null; - } - /** * Return the platform name based on the OS name and architecture, for example: * - darwin-x86_64