Comment out non-working code parts

For details, see code comment
Code cleanup for sidebar tree view and friends