Remove obsolete capture code