]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Removed dead code.
authorTimo Sirainen <tss@iki.fi>
Mon, 5 Apr 2010 05:03:40 +0000 (08:03 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 5 Apr 2010 05:03:40 +0000 (08:03 +0300)
--HG--
branch : HEAD

src/auth/mech-otp.c
src/auth/passdb-sql.c
src/lib-storage/index/mbox/mbox-storage.c

index b204de88aac931e7d878dc473eaebbd54bc2a35d..b94807f032384ec59227f4b67e8164547c323149 100644 (file)
@@ -99,12 +99,11 @@ mech_otp_auth_phase1(struct auth_request *auth_request,
 {
        struct otp_auth_request *request =
                (struct otp_auth_request *)auth_request;
-       const char *authzid, *authenid, *error;
+       const char *authenid, *error;
        size_t i, count;
 
        /* authorization ID \0 authentication ID
           FIXME: we'll ignore authorization ID for now. */
-       authzid = (const char *) data;
        authenid = NULL;
 
        count = 0;
index fb2bb9ba8b0dc1f5c957e40c1626aef261913072..7e6ed6035427d45a36404bc169ab698dac0362c6 100644 (file)
@@ -57,11 +57,10 @@ static void sql_query_callback(struct sql_result *result,
 {
        struct auth_request *auth_request = sql_request->auth_request;
        enum passdb_result passdb_result;
-       const char *user, *password, *scheme;
+       const char *password, *scheme;
        int ret;
 
        passdb_result = PASSDB_RESULT_INTERNAL_FAILURE;
-       user = auth_request->user;
        password = NULL;
 
        ret = sql_result_next_row(result);
index 61c1541ded06e7ca77d791f7e4b50d53377afb9a..9ef3a5790ca754c8af618eaaf19ef30139368c24 100644 (file)
@@ -473,13 +473,11 @@ mbox_mailbox_update(struct mailbox *box, const struct mailbox_update *update)
 
 static int create_inbox(struct mailbox *box)
 {
-       const char *inbox_path, *rootdir;
+       const char *inbox_path;
        int fd;
 
        inbox_path = mailbox_list_get_path(box->list, "INBOX",
                                           MAILBOX_LIST_PATH_TYPE_MAILBOX);
-       rootdir = mailbox_list_get_path(box->list, NULL,
-                                       MAILBOX_LIST_PATH_TYPE_DIR);
 
        fd = open(inbox_path, O_RDWR | O_CREAT | O_EXCL, 0660);
        if (fd == -1 && errno == EACCES) {