Skip to content

Commit

Permalink
MDL-58087 core_calendar: Remove redundant event vault factory
Browse files Browse the repository at this point in the history
Part of MDL-55611 epic.
  • Loading branch information
cameorn1730 authored and danpoltawski committed Apr 4, 2017
1 parent 59a601e commit b6d9b70
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 91 deletions.
5 changes: 2 additions & 3 deletions calendar/classes/local/event/core_container.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
defined('MOODLE_INTERNAL') || die();

use core_calendar\action_factory;
use core_calendar\local\event\data_access\event_vault;
use core_calendar\local\event\factories\action_event_factory;
use core_calendar\local\event\factories\event_factory;
use core_calendar\local\event\factories\event_vault_factory;
use core_calendar\local\event\mappers\event_mapper;
use core_calendar\local\interfaces\action_event_interface;
use core_calendar\local\interfaces\event_interface;
Expand Down Expand Up @@ -147,8 +147,7 @@ function ($dbrow) {
}

if (empty(self::$eventvault)) {
$vaultfactory = new event_vault_factory();
self::$eventvault = $vaultfactory->create_instance(self::$eventfactory);
self::$eventvault = new event_vault(self::$eventfactory, self::$eventretrievalstrategy);
}
}

Expand Down
47 changes: 0 additions & 47 deletions calendar/classes/local/event/factories/event_vault_factory.php

This file was deleted.

This file was deleted.

0 comments on commit b6d9b70

Please sign in to comment.