Remove useless code

It is supposed to suppress pipe errors, but it doesn't seem to work
properly.