Remove unused code in ScriptFragment

[Testrun](https://jenkins.catrob.at/view/All-Categories/view/Catroid/job/Catroid-Multi-Job-Custom-Branch/707/)