Retirement tax questions

@Opus 17  User said this:
"I had purchased home as a rental (2nd) home, rented it out for two years, then lived in it for last year and recently moved out since I want to gift to my niece."
But it's not clear if OP ever converted it back to personal use on his 2015 return.