Perhaps, kirkster, part of your weight issue was caused by overeating late at night, and imposing this food curfew on yourself was a way to tackle it? The rule would have worked for me when I was at my biggest simply because my habit was to binge eat out of boredom in the evening. It was common for me to eat 2000+ calories of food in the evening.
Skillmister and Volcs are right though, at a basic level it doesn't matter when or what you eat, so long as you are in calorie deficit. It would be better for you in the long term to make it a balanced diet, though technically you could eat cheeseburgers for breakfast, lunch and dinner and still lose weight.