Remove redundant eof method