"All for nothing" describes work that you did, which didn't have an effect or won't be used. In the example above, the speaker did a lot of work that won't be used in the final version of the project. Here's another example:
They banged and banged on the door for hours, but it was all for nothing. There was no one there to hear them.