mirror of
https://github.com/chatmail/core.git
synced 2026-05-17 05:46:30 +03:00
Remove unused argument of DC_JOB_CONFIGURE_IMAP
This commit is contained in:
committed by
holger krekel
parent
1a47c148e5
commit
8f6a0bbf09
@@ -45,7 +45,7 @@ pub fn dc_is_configured(context: &Context) -> bool {
|
|||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
// the other dc_job_do_DC_JOB_*() functions are declared static in the c-file
|
// the other dc_job_do_DC_JOB_*() functions are declared static in the c-file
|
||||||
#[allow(non_snake_case, unused_must_use)]
|
#[allow(non_snake_case, unused_must_use)]
|
||||||
pub unsafe fn dc_job_do_DC_JOB_CONFIGURE_IMAP(context: &Context, _job: &Job) {
|
pub unsafe fn dc_job_do_DC_JOB_CONFIGURE_IMAP(context: &Context) {
|
||||||
let mut success = false;
|
let mut success = false;
|
||||||
let mut imap_connected_here = false;
|
let mut imap_connected_here = false;
|
||||||
let mut smtp_connected_here = false;
|
let mut smtp_connected_here = false;
|
||||||
@@ -666,8 +666,6 @@ mod tests {
|
|||||||
|
|
||||||
use crate::config::*;
|
use crate::config::*;
|
||||||
use crate::configure::dc_job_do_DC_JOB_CONFIGURE_IMAP;
|
use crate::configure::dc_job_do_DC_JOB_CONFIGURE_IMAP;
|
||||||
use crate::job::*;
|
|
||||||
use crate::param::*;
|
|
||||||
use crate::test_utils::*;
|
use crate::test_utils::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@@ -677,19 +675,8 @@ mod tests {
|
|||||||
.set_config(Config::Addr, Some("probably@unexistant.addr"))
|
.set_config(Config::Addr, Some("probably@unexistant.addr"))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
t.ctx.set_config(Config::MailPw, Some("123456")).unwrap();
|
t.ctx.set_config(Config::MailPw, Some("123456")).unwrap();
|
||||||
let job = Job {
|
|
||||||
job_id: 1,
|
|
||||||
action: Action::ConfigureImap,
|
|
||||||
foreign_id: 0,
|
|
||||||
desired_timestamp: 0,
|
|
||||||
added_timestamp: 0,
|
|
||||||
tries: 0,
|
|
||||||
param: Params::new(),
|
|
||||||
try_again: 0,
|
|
||||||
pending_error: None,
|
|
||||||
};
|
|
||||||
unsafe {
|
unsafe {
|
||||||
dc_job_do_DC_JOB_CONFIGURE_IMAP(&t.ctx, &job);
|
dc_job_do_DC_JOB_CONFIGURE_IMAP(&t.ctx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -869,7 +869,7 @@ fn job_perform(context: &Context, thread: Thread, probe_network: bool) {
|
|||||||
Action::MarkseenMdnOnImap => job.do_DC_JOB_MARKSEEN_MDN_ON_IMAP(context),
|
Action::MarkseenMdnOnImap => job.do_DC_JOB_MARKSEEN_MDN_ON_IMAP(context),
|
||||||
Action::MoveMsg => job.do_DC_JOB_MOVE_MSG(context),
|
Action::MoveMsg => job.do_DC_JOB_MOVE_MSG(context),
|
||||||
Action::SendMdn => job.do_DC_JOB_SEND(context),
|
Action::SendMdn => job.do_DC_JOB_SEND(context),
|
||||||
Action::ConfigureImap => unsafe { dc_job_do_DC_JOB_CONFIGURE_IMAP(context, &job) },
|
Action::ConfigureImap => unsafe { dc_job_do_DC_JOB_CONFIGURE_IMAP(context) },
|
||||||
Action::ImexImap => unsafe { dc_job_do_DC_JOB_IMEX_IMAP(context, &job) },
|
Action::ImexImap => unsafe { dc_job_do_DC_JOB_IMEX_IMAP(context, &job) },
|
||||||
Action::MaybeSendLocations => {
|
Action::MaybeSendLocations => {
|
||||||
location::job_do_DC_JOB_MAYBE_SEND_LOCATIONS(context, &job)
|
location::job_do_DC_JOB_MAYBE_SEND_LOCATIONS(context, &job)
|
||||||
|
|||||||
Reference in New Issue
Block a user