Deprecate unused code
diff --git a/java/org/apache/tomcat/jni/Library.java b/java/org/apache/tomcat/jni/Library.java
index 05e02d8..ec84b96 100644
--- a/java/org/apache/tomcat/jni/Library.java
+++ b/java/org/apache/tomcat/jni/Library.java
@@ -269,7 +269,10 @@
* configurations), so that it can be loaded by multiple Webapps.
*
* @param filename - absolute path of the native library
+ *
+ * @deprecated Unused. Will be removed in Tomcat 10.1.x
*/
+ @Deprecated
public static void load(String filename){
System.load(filename);
}
@@ -287,7 +290,10 @@
* configurations), so that it can be loaded by multiple Webapps.
*
* @param libname - the name of the native library
+ *
+ * @deprecated Unused. Will be removed in Tomcat 10.1.x
*/
+ @Deprecated
public static void loadLibrary(String libname){
System.loadLibrary(libname);
}