Diet and training are forever the married couple. How the percentage of importance between them plays out--can depend. Sometimes, it simply isn't trying to do better as compared to the last workout--as some depletion workout setups are designed. In this case scenario, the marriage is 50/50. The macros have to be setup properly, and the workout--designed to burn a higher proportionate of carbohydrates; which usually means higher rep ranges, which in most cases are not progressive in nature (though can be) if spaced more than two days or so--in the process setup.
After losing 40+ unwanted lbs: