code cleanup

This commit is contained in:
SJ
2014-02-18 10:46:23 +01:00
parent f0687d6339
commit 7c1150052b
13 changed files with 25 additions and 150 deletions

View File

@@ -233,10 +233,6 @@ void p_clean_exit(){
clearhash(data.mydomains);
#ifdef HAVE_MULTITENANCY
free_list(data.customers);
#endif
syslog(LOG_PRIORITY, "%s has been terminated", PROGNAME);
unlink(cfg.pidfile);
@@ -312,10 +308,6 @@ void initialise_configuration(){
clearhash(data.mydomains);
#ifdef HAVE_MULTITENANCY
free_list(data.customers);
#endif
data.folder = 0;
data.recursive_folder_names = 0;
@@ -323,10 +315,6 @@ void initialise_configuration(){
initrules(data.archiving_rules);
initrules(data.retention_rules);
#ifdef HAVE_MULTITENANCY
data.customers = NULL;
#endif
memset(data.starttls, 0, sizeof(data.starttls));
#ifdef HAVE_STARTTLS
@@ -345,10 +333,6 @@ void initialise_configuration(){
load_mydomains(&sdata, &data, &cfg);
#ifdef HAVE_MULTITENANCY
load_customers(&sdata, &data, &cfg);
#endif
if(cfg.server_id > 0) insert_offset(&sdata, cfg.server_id);
close_database(&sdata);
@@ -397,9 +381,6 @@ int main(int argc, char **argv){
inithash(data.mydomains);
initrules(data.archiving_rules);
initrules(data.retention_rules);
#ifdef HAVE_MULTITENANCY
data.customers = NULL;
#endif
data.ctx = NULL;
data.ssl = NULL;