[cleanup] remove hidden code parts
[cleanup] remove hidden code parts

detached from I4ef9009c91e485509e4ae05a04404b3c06a5331c

Change-Id: I4026292aff74fc1dafcc198c3b11219d9700f6f1

wikimedia/pywikibot-core,PersianWikipedia/pywikibot-core,wikimedia/pywikibot-core