removed dead code
first code for rwlock
ignore xcode chaff