sounds like this function is actually dead (judging by the comment), where is it called from?