From d4ec2c30a054f790d2de62eb8a14656031ce5fc1 Mon Sep 17 00:00:00 2001 From: Dan Kalowsky Date: Sat, 3 Aug 2002 14:48:47 +0000 Subject: [PATCH] Cleaning up the imap_get_quotaroot return array to remove useless data --- ext/imap/php_imap.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 7873e47b05..ad9e0d74f7 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -403,24 +403,6 @@ void mail_getquota(MAILSTREAM *stream, char *qroot, QUOTALIST *qlist) } } /* }}} */ - -/* {{{ mail_getquotaroot - * - * Mail GET_QUOTAROOT callback - * Called via the mail_parameter function in c-client:src/c-client/mail.c - * Author DRK - */ -void mail_getquotaroot(MAILSTREAM *stream, char *mbx, STRINGLIST *qroot) -{ - TSRMLS_FETCH(); - - add_next_index_stringl(IMAPG(quota_return), mbx, strlen(mbx), 1); - for(; qroot; qroot = qroot->next) { - add_next_index_stringl(IMAPG(quota_return), qroot->text.data, qroot->text.size, 1); - } - -} -/* }}} */ #endif @@ -1126,7 +1108,6 @@ PHP_FUNCTION(imap_get_quotaroot) /* set the callback for the GET_QUOTAROOT function */ mail_parameters(NIL, SET_QUOTA, (void *) mail_getquota); - mail_parameters(NIL, SET_QUOTAROOT, (void *) mail_getquotaroot); if(!imap_getquotaroot(imap_le_struct->imap_stream, Z_STRVAL_PP(mbox))) { php_error(E_WARNING, "%s(): c-client imap_getquotaroot failed", get_active_function_name(TSRMLS_C)); RETURN_FALSE; -- 2.40.0