Fixed the code smell Dead Code