Remove useless console warnings.