Dieting for weight loss and exercise for fitness...and some weight loss haha. In the beginning I wasn't really doing any exercise for a while because I was on steroids/antibiotics and every time I did anything my heart would start to race and wouldn't slow down for ages. So I just cut out desserts/chocolate and ate better and I lost weight consistently. These days I'm just exercising because I want to tone up and be healthy as well.
If you feel like your clothes fit better and you're feeling good then that's what's important. It's not all about the number on the scale. So go back to the gym and continue what you're doing
good luck.