diff --git a/src/Entity/Torrent.php b/src/Entity/Torrent.php index eb9c601..e4d8e2b 100644 --- a/src/Entity/Torrent.php +++ b/src/Entity/Torrent.php @@ -80,20 +80,8 @@ class Torrent return $this->id; } - /** - * Returns torrent info hash as HEX string - */ + /** Returns torrent info hash as HEX string */ public function getInfoHash(): string - { - return $this->getInfoHashAsHex(); - } - - /** - * @deprecated Use getInfoHash() instead - * - * Returns torrent info hash as HEX string - */ - public function getInfoHashAsHex(): string { if (null === $this->infoHashHexCache) { $this->infoHashHexCache = bin2hex(stream_get_contents($this->infoHash)); diff --git a/templates/torrent_list.html.twig b/templates/torrent_list.html.twig index d0b4326..6973ec5 100644 --- a/templates/torrent_list.html.twig +++ b/templates/torrent_list.html.twig @@ -16,7 +16,7 @@ {# @var torrent \App\Entity\Torrent #} {% for torrent in torrents %}