There are no callers that use NULL.
struct mailbox_list_fs_context *ctx;
struct fs *parent_fs;
+ i_assert(event_parent != NULL);
+
i_zero(&fs_params);
mail_user_init_fs_parameters(list->ns->user, &fs_params);
fs_params.root_path = root_dir;
fs_params.temp_file_prefix = mailbox_list_get_global_temp_prefix(list);
- if (event_parent == NULL)
- event_parent = list->ns->user->event;
if (fs_legacy_init(driver, args, event_parent, &fs_params,
fs_r, error_r) < 0)
return -1;
void mailbox_list_last_error_push(struct mailbox_list *list);
void mailbox_list_last_error_pop(struct mailbox_list *list);
-/* Create a fs based on the settings in the given mailbox_list. If event_parent
- is NULL, use user->event as the parent. */
+/* Create a fs based on the settings in the given mailbox_list. */
int mailbox_list_init_fs(struct mailbox_list *list, struct event *event_parent,
const char *driver,
const char *args, const char *root_dir,