Remove disused get_language_id() function in main

Modules which use a get_language_id() function have their own, and thus,
this function is never used.