Removed old and unused code from ec.h

fixing issue #169