-Actions we didn't have to do
didn't need to + infinitive
We still had fruit so we didn't need to buy more.
-Actions that happened but didn't have to happen
needn't have + past participle (3e rijtje)
I already have chocolate, so we needn't have bought any.