Programmatically hide comment and view tabs
A more generic solution could be Tab Tamer.


  Tab Tamer is an administration utility that provides easy re-ordering, hiding, and deactivation of tabs and subtabs. You can also rename tab labels.