Remove useless function in script provider