Flogging a dead horse
Engage in a pointless, counter-productive pastime, a waste of time, an Americanism dates from the early 19th century from the obvious and pointless allusion of urging on a dead horse.