Remove more obsolete code dealing with categories (bug 1058292)

https://bugzilla.mozilla.org/show_bug.cgi?id=1058292

Pretty sure those all this code is obsolete.