单项选择题

As it turned out to be a problem of no importance, we______so much time look- ing into it.

A.needn't spend
B.didn't have to spend
C.oughtn't to spend
D.needn't have spent