diff --git a/mod/h5pactivity/classes/event/statement_received.php b/mod/h5pactivity/classes/event/statement_received.php index c6a3b646078..2ad37638ae3 100644 --- a/mod/h5pactivity/classes/event/statement_received.php +++ b/mod/h5pactivity/classes/event/statement_received.php @@ -55,16 +55,6 @@ class statement_received extends \core\event\base { return get_string('statement_received', 'mod_h5pactivity'); } - /** - * Replace add_to_log() statement. - * - * @return array of parameters to be passed to legacy add_to_log() function. - */ - protected function get_legacy_logdata() { - return [$this->courseid, 'h5pactivity', 'statement received', 'grade.php?user=' . $this->userid, - 0, $this->contextinstanceid]; - } - /** * Returns non-localised description of what happened. * diff --git a/mod/h5pactivity/tests/event/statement_received_test.php b/mod/h5pactivity/tests/event/statement_received_test.php index b4eaa7034fd..b9471406096 100644 --- a/mod/h5pactivity/tests/event/statement_received_test.php +++ b/mod/h5pactivity/tests/event/statement_received_test.php @@ -72,9 +72,6 @@ class statement_received_testcase extends advanced_testcase { $this->assertInstanceOf('\mod_h5pactivity\event\statement_received', $event); $this->assertEquals(context_module::instance($activity->cmid), $event->get_context()); $this->assertEquals($activity->id, $event->objectid); - $expected = [$course->id, 'h5pactivity', 'statement received', - 'grade.php?user=' . $USER->id, 0, $activity->cmid]; - $this->assertEventLegacyLogData($expected, $event); $this->assertEventContextNotUsed($event); } }