... or may be you are telling one side of the story. You can ask your boss directly why it is no more needed.

May be your boss really want that work but by the time you finish it, it is no more required. There could be a very genuine business reason. It usually happens in business world.