api!: remove getPushState() and core's internal tracking of it.

Since https://github.com/deltachat/deltachat-ios/pull/3224 pushstate is not used
(android, desktop etc. never used it, only ios)
This commit is contained in:
holger krekel
2026-07-26 17:06:45 +02:00
parent 0bb3d88bc6
commit 35555ca753
10 changed files with 0 additions and 98 deletions

View File

@@ -638,22 +638,6 @@ int dc_get_connectivity (dc_context_t* context);
char* dc_get_connectivity_html (dc_context_t* context);
#define DC_PUSH_NOT_CONNECTED 0
#define DC_PUSH_CONNECTED 2
/**
* Get the current push notification state.
* One of:
* - DC_PUSH_NOT_CONNECTED
* - DC_PUSH_CONNECTED
*
* @memberof dc_context_t
* @param context The context object.
* @return Push notification state.
*/
int dc_get_push_state (dc_context_t* context);
// connect
/**

View File

@@ -397,16 +397,6 @@ pub unsafe extern "C" fn dc_get_connectivity_html(
}
}
#[unsafe(no_mangle)]
pub unsafe extern "C" fn dc_get_push_state(context: *const dc_context_t) -> libc::c_int {
if context.is_null() {
eprintln!("ignoring careless call to dc_get_push_state()");
return 0;
}
let ctx = unsafe { &*context };
ctx.push_state() as libc::c_int
}
fn spawn_configure(ctx: Context) {
spawn(async move {
ctx.configure()