Skip to content

Commit 72c8c02

Browse files
fix(clippy): suppress dead_code check (#2135)
* fix(clippy): suppress dead_code check * fix(clippy): delete unused code
1 parent a7ca89d commit 72c8c02

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

bindings/java/src/lib.rs

-15
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,6 @@ thread_local! {
4242
static JENV: RefCell<Option<*mut jni::sys::JNIEnv>> = RefCell::new(None);
4343
}
4444

45-
fn get_system_property(env: &mut JNIEnv, key: &str) -> Result<String, jni::errors::Error> {
46-
let system_class = env.find_class("java/lang/System")?;
47-
let key = env.new_string(key)?;
48-
let value = env.call_static_method(
49-
system_class,
50-
"getProperty",
51-
"(Ljava/lang/String;)Ljava/lang/String;",
52-
&[JValue::Object(key.as_ref())],
53-
)?;
54-
55-
Ok(env
56-
.get_string(JString::from(value.l().unwrap()).as_ref())?
57-
.into())
58-
}
59-
6045
/// # Safety
6146
///
6247
/// This function could be only called by java vm when load this lib.

0 commit comments

Comments
 (0)