remove unused helper functions (bug 1028010)

https://bugzilla.mozilla.org/show_bug.cgi?id=1028010

r? @robhudson @diox
haha, `just_kidding`.