Comment unused variable in curvegradient.cpp