Time will heal. I would try to avoid him and try to find other things to occupy your mind --- such as spending more time with your girlfriend or family, putting more time into your hobbies or starting a new hobby. If you know a relationship will never occur, you need to move on so you can open your heart to someone else.
Hmmm...courtship is kinda like fishing. People cast out their lines without knowing for sure what will happen next. In your case, I believe it is a random act and not target specific.
So you got hooked and he is throwing you back. Just move along and be happy that you are still free and fit to explore even deeper waters out there. Believe me, there are far too many mediocre fishermen and too few trophy fish in the world.