From: Timo Sirainen Date: Mon, 2 Aug 2010 14:30:27 +0000 (+0100) Subject: notify: Removed noop functions, they're no longer needed. X-Git-Tag: 2.0.rc4~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e36f299984b4af93d08d9259c4ad8d987a5be6a;p=thirdparty%2Fdovecot%2Fcore.git notify: Removed noop functions, they're no longer needed. --- diff --git a/src/plugins/notify/Makefile.am b/src/plugins/notify/Makefile.am index d10c3763b9..174dae3ae8 100644 --- a/src/plugins/notify/Makefile.am +++ b/src/plugins/notify/Makefile.am @@ -14,7 +14,6 @@ module_LTLIBRARIES = \ lib15_notify_plugin_la_SOURCES = \ notify-plugin.c \ - notify-noop.c \ notify-storage.c headers = \ diff --git a/src/plugins/notify/notify-noop.c b/src/plugins/notify/notify-noop.c deleted file mode 100644 index b991828fb4..0000000000 --- a/src/plugins/notify/notify-noop.c +++ /dev/null @@ -1,28 +0,0 @@ -#include "lib.h" -#include "mail-types.h" -#include "notify-plugin.h" - -void notify_noop_mail_transaction_begin(struct mailbox_transaction_context *t ATTR_UNUSED) {} -void notify_noop_mail_save(void *txn ATTR_UNUSED, - struct mail *mail ATTR_UNUSED) {} -void notify_noop_mail_copy(void *txn ATTR_UNUSED, - struct mail *src ATTR_UNUSED, - struct mail *dst ATTR_UNUSED) {} -void notify_noop_mail_expunge(void *txn ATTR_UNUSED, - struct mail *mail ATTR_UNUSED) {} -void notify_noop_mail_update_flags(void *txn ATTR_UNUSED, - struct mail *mail ATTR_UNUSED, - enum mail_flags old_flags ATTR_UNUSED) {} -void notify_noop_mail_update_keywords(void *txn ATTR_UNUSED, - struct mail *mail ATTR_UNUSED, - const char *const *old_keywords ATTR_UNUSED) {} -void notify_noop_mail_transaction_commit(void *txn ATTR_UNUSED, - struct mail_transaction_commit_changes *changes ATTR_UNUSED) {} -void notify_noop_mail_transaction_rollback(void *txn ATTR_UNUSED) {} -void *notify_noop_mailbox_delete_begin(struct mailbox *box ATTR_UNUSED) { return NULL; } -void notify_noop_mailbox_delete_commit(void *txn ATTR_UNUSED, - struct mailbox *box ATTR_UNUSED) {} -void notify_noop_mailbox_delete_rollback(void *txn ATTR_UNUSED) {} -void notify_noop_mailbox_rename(struct mailbox *src ATTR_UNUSED, - struct mailbox *dest ATTR_UNUSED, - bool rename_children ATTR_UNUSED) {} diff --git a/src/plugins/notify/notify-plugin.h b/src/plugins/notify/notify-plugin.h index 2af8079a90..db2fabfd76 100644 --- a/src/plugins/notify/notify-plugin.h +++ b/src/plugins/notify/notify-plugin.h @@ -30,23 +30,6 @@ struct notify_vfuncs { bool rename_children); }; -void notify_noop_mail_transaction_begin(struct mailbox_transaction_context *t); -void notify_noop_mail_save(void *txn, struct mail *mail); -void notify_noop_mail_copy(void *txn, struct mail *src, struct mail *dst); -void notify_noop_mail_expunge(void *txn, struct mail *mail); -void notify_noop_mail_update_flags(void *txn, struct mail *mail, - enum mail_flags old_flags); -void notify_noop_mail_update_keywords(void *txn, struct mail *mail, - const char *const *old_keywords); -void notify_noop_mail_transaction_commit(void *txn, - struct mail_transaction_commit_changes *changes); -void notify_noop_mail_transaction_rollback(void *txn); -void *notify_noop_mailbox_delete_begin(struct mailbox *box); -void notify_noop_mailbox_delete_commit(void *txn, struct mailbox *box); -void notify_noop_mailbox_delete_rollback(void *txn); -void notify_noop_mailbox_rename(struct mailbox *src, struct mailbox *dest, - bool rename_children); - struct notify_context * notify_register(const struct notify_vfuncs *vfuncs); void notify_unregister(struct notify_context *ctx);