remove now-unnecessary length checks from C++