diff --git a/src/Component/SimpleTreeLinkNode.php b/src/Component/SimpleTreeLinkNode.php index 38d5dcf..ddc8537 100644 --- a/src/Component/SimpleTreeLinkNode.php +++ b/src/Component/SimpleTreeLinkNode.php @@ -75,10 +75,6 @@ public function getSubComponents(): array { * @return Message */ public function getText(): Message { - $msg = Message::newFromKey( $this->options['text'] ); - if ( $msg->exists() ) { - return $msg; - } return new RawMessage( $this->options['text'] ); } @@ -86,10 +82,6 @@ public function getText(): Message { * @return Message */ public function getTitle(): Message { - $msg = Message::newFromKey( $this->options['title'] ); - if ( $msg->exists() ) { - return $msg; - } return new RawMessage( $this->options['title'] ); } diff --git a/src/Component/SimpleTreeTextNode.php b/src/Component/SimpleTreeTextNode.php index 5d87acc..e3ecc5e 100644 --- a/src/Component/SimpleTreeTextNode.php +++ b/src/Component/SimpleTreeTextNode.php @@ -73,10 +73,6 @@ public function getSubComponents(): array { * @return Message */ public function getText(): Message { - $msg = Message::newFromKey( $this->options['text'] ); - if ( $msg->exists() ) { - return $msg; - } return new RawMessage( $this->options['text'] ); } }