remove unneccessary usage of `unset($string);`
authorjens1o <jenshausdorf@gmail.com>
Sat, 3 Feb 2018 09:36:26 +0000 (10:36 +0100)
committerjens1o <jenshausdorf@gmail.com>
Sat, 3 Feb 2018 09:36:26 +0000 (10:36 +0100)
Code cleanup, introduced with 13be5e885f85a5a878d9e2d8337af74c2ed8bbc1

wcfsetup/install/files/lib/data/style/StyleEditor.class.php

index 9552547b670b3e3b2c3fc3e0d84f730d3d1da2f5..c7d2084e1b1a9ed30bf2486fad753959c29e7e96 100644 (file)
@@ -763,7 +763,6 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject
                
                // append style info file to style tar
                $styleTar->addString(self::INFO_FILE, $xml->endDocument());
-               unset($string);
                
                // create variable list
                $xml->beginDocument('variables', 'http://www.woltlab.com', 'http://www.woltlab.com/XSD/vortex/styleVariables.xsd');
@@ -782,7 +781,6 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject
                
                // append variable list to style tar
                $styleTar->addString('variables.xml', $xml->endDocument());
-               unset($string);
                
                if ($templates && $this->templateGroupID) {
                        $templateGroup = new TemplateGroup($this->templateGroupID);