remove weaved C++ code