Skip to content

Commit

Permalink
Remove unused CUSTOM_CLASS_LOADER field and accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinherron committed Oct 16, 2019
1 parent 6dd4f64 commit 8ecc6cd
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

package org.eclipse.milo.opcua.stack.core;

import java.util.Optional;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
Expand Down Expand Up @@ -61,7 +60,6 @@ public final class Stack {
private static ExecutorService EXECUTOR_SERVICE;
private static ScheduledExecutorService SCHEDULED_EXECUTOR_SERVICE;
private static HashedWheelTimer WHEEL_TIMER;
private static ClassLoader CUSTOM_CLASS_LOADER;

/**
* @return a shared {@link NioEventLoopGroup}.
Expand Down Expand Up @@ -163,22 +161,6 @@ public static synchronized HashedWheelTimer sharedWheelTimer() {
return WHEEL_TIMER;
}

/**
* @return if configured, the {@link ClassLoader} to be used when reflectively loading classes.
*/
public static synchronized Optional<ClassLoader> getCustomClassLoader() {
return Optional.ofNullable(CUSTOM_CLASS_LOADER);
}

/**
* Set the {@link ClassLoader} that will be used when reflectively loading classes.
*
* @param customClassLoader the {@link ClassLoader} that will used when reflectively loading classes.
*/
public static synchronized void setCustomClassLoader(ClassLoader customClassLoader) {
CUSTOM_CLASS_LOADER = customClassLoader;
}

/**
* Release shared resources, waiting at most 5 seconds for the {@link NioEventLoopGroup} to shutdown gracefully.
*/
Expand Down

0 comments on commit 8ecc6cd

Please sign in to comment.