Header menus used?

The code used to implement 'Header menus' is a complete mess with horrible unused statements! Does anybody use this?

Screenshot_2021-05-13_174702

Screenshot_2021-05-13_172309

Screenshot_2021-05-14_133548

In fact I don't think its actually working!