Removed unused code in readwrite library.