No, that was another project and had nothing to do with the gas pipeline. It was another pipeline which was to carry oil. This oil pipeline from Iran to Gwadar was not to actually sell Iranian oil via Pakistani port but its purpose was different. An oil refinery was to be built in Gwadar to produce heavy fuel and lubricants (in addition to industrial chemicals) for the purpose of refueling the ships that visit Gwadar.
You see, a ship is a giant transporter that needs thousands of tons of fuel to run and it has a tight time schedule to keep. The ship can not visit Gwadar and do whatever trade it wants to do and then go to Dubai for refueling. It would not make sense. That is why major ports must have access to a refinery and an oil source. Otherwise they can not become an international hub.
This was a different project unrelated to that gas pipeline which was to supply Pakistan domestically. The Gwadar oil pipeline project (its official name was Gwadar oil city) was a more geostrategic power play. The target country Pakistan was trying to compete with, was Dubai, UAE. But now it is all cancelled. At least no one is talking about it anymore. Ships can continue going to Dubai. At any rate, Gwadar not only does not have any energy sources, but also does not even have a proper airport or even security.