It looks like this function isn't used anywhere, can be removed.