What is it when you ankle hurts but without swelling?

Depends. Not all injuries cause significant swelling that can be seen. You may have twisted or bruised your ankle. More info needed about the pain.
Osteo arthritis. Wear andvtearbofbthe joint can cause the pain.