mirror of
https://bitbucket.org/jsuto/piler.git
synced 2026-04-05 18:19:19 +02:00
code cleanup
This commit is contained in:
19
src/piler.c
19
src/piler.c
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user