Removed a number of internal file functions that are no longer used.