meaning of Alle Mühe war umsonst

Alle Mühe war umsonst - German to English

most of the difficulty had been for nothing.