The assignment to $locale_set is dead and can be removed.
The parameter $id is not used and could be removed.