Skip to content

Commit

Permalink
ndk-glue: Drop deprecated annotation from native_activity()
Browse files Browse the repository at this point in the history
It has been quite some time since we introduced this, and our
alternative implementation for more safely passing a native activity to
the user while interoperating cleanly with `ndk_context` still hasn't
found its way.

There are legitimate uses for `native_activity()` that cannot be
performed through the suggested `ndk_context::android_context().vm()`,
making the load of this deprecation warning heavier than the problem it
tries to prevent.
  • Loading branch information
MarijnS95 committed May 25, 2022
1 parent be55263 commit aea6c33
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ndk-glue/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ lazy_static! {

static mut NATIVE_ACTIVITY: Option<NativeActivity> = None;

#[deprecated = "Use `ndk_context::android_context().vm()` instead."]
pub fn native_activity() -> &'static NativeActivity {
unsafe { NATIVE_ACTIVITY.as_ref().unwrap() }
}
Expand Down

0 comments on commit aea6c33

Please sign in to comment.