Remove unused functions returning errno as atom