单项选择题

It was very kind of you to get me something for my birthday, but you ______ me such an expensive present.

A.didn't need buying
B.needn't buy
C.needn't have bought
D.hadn't needed to buy