]> code.citadel.org Git - citadel.git/blobdiff - citadel/user_ops.c
Use the new data format for RoomInfo in spoolcontrol (what is this for?)
[citadel.git] / citadel / user_ops.c
index 1e8792d71d6a0cb9681c9bad800650a4da28e427..b27068ecba02851360b21e16ac93df0de5a63f1b 100644 (file)
@@ -1,7 +1,7 @@
 /* 
  * Server functions which perform operations on user objects.
  *
- * Copyright (c) 1987-2011 by the citadel.org team
+ * Copyright (c) 1987-2016 by the citadel.org team
  *
  * This program is open source software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License, version 3.
@@ -968,7 +968,6 @@ int CtdlTryPassword(const char *password, long len)
  */
 int purge_user(char pname[])
 {
-       char filename[64];
        struct ctdluser usbuf;
        char usernamekey[USERNAME_SIZE];
 
@@ -1016,22 +1015,6 @@ int purge_user(char pname[])
        /* delete the userlog entry */
        cdb_delete(CDB_USERS, usernamekey, strlen(usernamekey));
 
-       /* remove the user's bio file */
-       snprintf(filename, 
-                        sizeof filename, 
-                        "%s/%ld",
-                        ctdl_bio_dir,
-                        usbuf.usernum);
-       unlink(filename);
-
-       /* remove the user's picture */
-       snprintf(filename, 
-                        sizeof filename, 
-                        "%s/%ld.gif",
-                        ctdl_image_dir,
-                        usbuf.usernum);
-       unlink(filename);
-
        return (0);
 }