Removed dead code
rename() returns 0 if it went well and -1 if there is an error