Unfortunately, in all languages at the moment the codec is generated in a way that it handles all involved types (e.g. user-defined IDL structs) as well as all "generic" cases (even if not used). So the Protobuf project would not built, if the file is simply removed, since the static function "resolveError" provided by this class is referenced from there in the generic encode/decode functions.
From #101: