Update name_lastname_byear.cpp

Removed unnecessary code.