remove unused dc_empty_server() and related code

'Delete emails from server' was an experimental ad-hoc function
that was added before 'Automatically delete old messages' was introduced
to allow at least some way to cleanup.

'Delete emails from server'-UI was already removed from android/ios in june
(see https://github.com/deltachat/deltachat-android/pull/1406)
and the function never exists on desktop at all.
This commit is contained in:
B. Petersen
2020-09-05 22:00:41 +02:00
committed by link2xt
parent 87c6f7d42b
commit 65f2a3b1c6
7 changed files with 0 additions and 135 deletions

View File

@@ -1797,15 +1797,6 @@ pub async fn update_server_uid(
}
}
pub async fn dc_empty_server(context: &Context, flags: u32) {
job::kill_action(context, Action::EmptyServer).await;
job::add(
context,
job::Job::new(Action::EmptyServer, flags, Params::new(), 0),
)
.await;
}
#[cfg(test)]
mod tests {
use super::*;