You could be restricting calories from where you began and not where you are.
You can refrain from eating a donut, i.e calorie restriction. Or you can eat it and not restrict calories. You don’t have to be losing weight to restrict calories, it can also be for maintenance.