diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2015-03-25 01:13:31 +0100 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2015-04-02 19:16:04 +0200 |
commit | 2a462bb7e43b848d0277bd27e14ca4d645230eeb (patch) | |
tree | 28bb0e2776a3b98844dbc3016a83bb42837a8887 | |
parent | 37fedc656fbdeb36b098375201042eed4c7e7229 (diff) | |
download | forums-2a462bb7e43b848d0277bd27e14ca4d645230eeb.tar forums-2a462bb7e43b848d0277bd27e14ca4d645230eeb.tar.gz forums-2a462bb7e43b848d0277bd27e14ca4d645230eeb.tar.bz2 forums-2a462bb7e43b848d0277bd27e14ca4d645230eeb.tar.xz forums-2a462bb7e43b848d0277bd27e14ca4d645230eeb.zip |
[ticket/11768] Removed get_parser() / get_renderer() accessors
There's no need to access the s9e\TextFormatter objects outside of events.
PHPBB3-11768
-rw-r--r-- | phpBB/phpbb/textformatter/s9e/parser.php | 10 | ||||
-rw-r--r-- | phpBB/phpbb/textformatter/s9e/renderer.php | 10 | ||||
-rw-r--r-- | tests/text_formatter/s9e/parser_test.php | 7 | ||||
-rw-r--r-- | tests/text_formatter/s9e/renderer_test.php | 7 |
4 files changed, 0 insertions, 34 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/parser.php b/phpBB/phpbb/textformatter/s9e/parser.php index 2f4a03d4c2..6fda94d7ba 100644 --- a/phpBB/phpbb/textformatter/s9e/parser.php +++ b/phpBB/phpbb/textformatter/s9e/parser.php @@ -191,16 +191,6 @@ class parser implements \phpbb\textformatter\parser_interface } /** - * Return the instance of s9e\TextFormatter\Parser used by this object - * - * @return \s9e\TextFormatter\Parser - */ - public function get_parser() - { - return $this->parser; - } - - /** * {@inheritdoc} */ public function set_var($name, $value) diff --git a/phpBB/phpbb/textformatter/s9e/renderer.php b/phpBB/phpbb/textformatter/s9e/renderer.php index 75de54d942..b68c9dd9be 100644 --- a/phpBB/phpbb/textformatter/s9e/renderer.php +++ b/phpBB/phpbb/textformatter/s9e/renderer.php @@ -147,16 +147,6 @@ class renderer implements \phpbb\textformatter\renderer_interface } /** - * Return the instance of s9e\TextFormatter\Renderer used by this object - * - * @return \s9e\TextFormatter\Renderer - */ - public function get_renderer() - { - return $this->renderer; - } - - /** * {@inheritdoc} */ public function get_viewcensors() diff --git a/tests/text_formatter/s9e/parser_test.php b/tests/text_formatter/s9e/parser_test.php index 725ff42bfd..71433e209f 100644 --- a/tests/text_formatter/s9e/parser_test.php +++ b/tests/text_formatter/s9e/parser_test.php @@ -167,11 +167,4 @@ class phpbb_textformatter_s9e_parser_test extends phpbb_test_case ) ); } - - public function test_get_parser() - { - $container = $this->get_test_case_helpers()->set_s9e_services(); - $parser = $container->get('text_formatter.parser'); - $this->assertInstanceOf('s9e\\TextFormatter\\Parser', $parser->get_parser()); - } } diff --git a/tests/text_formatter/s9e/renderer_test.php b/tests/text_formatter/s9e/renderer_test.php index b93fd8bbe6..ce2fccd9b7 100644 --- a/tests/text_formatter/s9e/renderer_test.php +++ b/tests/text_formatter/s9e/renderer_test.php @@ -354,11 +354,4 @@ class phpbb_textformatter_s9e_renderer_test extends phpbb_test_case ); } } - - public function test_get_renderer() - { - $container = $this->get_test_case_helpers()->set_s9e_services(); - $renderer = $container->get('text_formatter.renderer'); - $this->assertInstanceOf('s9e\\TextFormatter\\Renderer', $renderer->get_renderer()); - } } |