dovecot-2.0: Removed dead code.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Apr 5 08:03:43 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/30815e260f47
changeset: 11065:30815e260f47
user: Timo Sirainen <tss at iki.fi>
date: Mon Apr 05 08:03:40 2010 +0300
description:
Removed dead code.
diffstat:
src/auth/mech-otp.c | 3 +--
src/auth/passdb-sql.c | 3 +--
src/lib-storage/index/mbox/mbox-storage.c | 4 +---
3 files changed, 3 insertions(+), 7 deletions(-)
diffs (51 lines):
diff -r 1786d44bf90f -r 30815e260f47 src/auth/mech-otp.c
--- a/src/auth/mech-otp.c Mon Apr 05 08:01:48 2010 +0300
+++ b/src/auth/mech-otp.c Mon Apr 05 08:03:40 2010 +0300
@@ -99,12 +99,11 @@
{
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;
diff -r 1786d44bf90f -r 30815e260f47 src/auth/passdb-sql.c
--- a/src/auth/passdb-sql.c Mon Apr 05 08:01:48 2010 +0300
+++ b/src/auth/passdb-sql.c Mon Apr 05 08:03:40 2010 +0300
@@ -57,11 +57,10 @@
{
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);
diff -r 1786d44bf90f -r 30815e260f47 src/lib-storage/index/mbox/mbox-storage.c
--- a/src/lib-storage/index/mbox/mbox-storage.c Mon Apr 05 08:01:48 2010 +0300
+++ b/src/lib-storage/index/mbox/mbox-storage.c Mon Apr 05 08:03:40 2010 +0300
@@ -473,13 +473,11 @@
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) {
More information about the dovecot-cvs
mailing list