a) It doesnt matter.
"What were you saying?" "Oh, it was nothing important – forget it."
b) Used a conventional reply to an expression of gratitude.
"Thank you so much! How can I repay you for your kindness?" "Forget it; it was nothing."
Wikipedia foundation.