mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 06:16:30 +03:00
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:
@@ -405,7 +405,6 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
|
||||
event <event-id to test>\n\
|
||||
fileinfo <file>\n\
|
||||
estimatedeletion <seconds>\n\
|
||||
emptyserver <flags> (1=MVBOX 2=INBOX)\n\
|
||||
clear -- clear screen\n\
|
||||
exit or quit\n\
|
||||
============================================="
|
||||
@@ -1092,11 +1091,6 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
|
||||
seconds, device_cnt, server_cnt
|
||||
);
|
||||
}
|
||||
"emptyserver" => {
|
||||
ensure!(!arg1.is_empty(), "Argument <flags> missing");
|
||||
|
||||
message::dc_empty_server(&context, arg1.parse()?).await;
|
||||
}
|
||||
"" => (),
|
||||
_ => bail!("Unknown command: \"{}\" type ? for help.", arg0),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user