Remove duplicated, dead code

This seems to be an old version of this function, which is
unreachable behind the unconditional return statement.