Delete useless function in class light