Faster way to remove excess lines on the edge of a pattern?

Here you go, triple click, shift double click, delete.