Remove unused code
Merge pull request #1027 from romainneutron/setup-upgrader

[3.9] Remove unused code