Remove unused vasriable and setting