removed obsolete c code