path, path/filepath: remove dead code

Fixes issue 8503.

Thanks to no.smile.face for the original report.

LGTM=bradfitz, r, ruiu
R=bradfitz, ruiu, r
CC=golang-codereviews
https://codereview.appspot.com/132730043