Remove useless method invocation