remove unused pthread code
commit my unknown old modification