Remove useless code

This commit is contained in:
Frédéric Guillot 2014-08-19 18:00:02 -07:00
parent 0f825844d4
commit f8071e7d4a
1 changed files with 1 additions and 9 deletions

View File

@ -104,15 +104,7 @@ class Webhook extends Base
*/
public function attachCreateEvents()
{
$events = array(
Task::EVENT_CREATE,
);
$listener = new WebhookListener($this->url_task_creation, $this);
foreach ($events as $event_name) {
$this->event->attach($event_name, $listener);
}
$this->event->attach(Task::EVENT_CREATE, new WebhookListener($this->url_task_creation, $this));
}
/**