Dead men's shoes

I'm trying to find the origin of the phrase "looking after dead men's shoes" ... thanks.

Dead men's shoes.
Waiting or looking for dead men's shoes. Counting on some advantage to which you will succeed when the present possessor is dead.