diff --git a/src/Chip/Chip.php b/src/Chip/Chip.php index 7fe9c86..2be38a6 100644 --- a/src/Chip/Chip.php +++ b/src/Chip/Chip.php @@ -12,8 +12,6 @@ use \PhpParser\ParserFactory; use \PhpParser\NodeTraverser; -stream_wrapper_register(MemoryStreamWrapper::WRAPPER_NAME, MemoryStreamWrapper::class); - class Chip { /** diff --git a/src/Chip/MemoryStreamWrapper.php b/src/Chip/MemoryStreamWrapper.php deleted file mode 100644 index 45f4737..0000000 --- a/src/Chip/MemoryStreamWrapper.php +++ /dev/null @@ -1,44 +0,0 @@ -_position = 0; - $this->_content = substr($path, strlen(self::WRAPPER_NAME) + 3); - return true; - } - - public function stream_read($count) - { - $ret = substr($this->_content, $this->_position, $count); - $this->_position += strlen($ret); - return $ret; - } - - public function stream_stat() - { - return array(); - } - - public function stream_eof() - { - return $this->_position >= strlen($this->_content); - } -} -// phpcs:enable