Remove some duplicate code from a merge in rb-site.

Some code from a backport of an rb-site change to 1.7 got merged back
into 2.0, causing a duplicate function and unused import. This removes
that code.