Remove redundant version check (#19649)

This was added by 3f98af287b. I'm not sure why it was needed. But, currently, the supported version is specified in the gemspec(`required_ruby_version`) correctly. So no need to check it inside code.

Closes #19649

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/19649 from y-yagi:remove_redundant_version_check 4b1dd06357
PiperOrigin-RevId: 723537424
pull/20247/head
y-yagi 3 weeks ago committed by Copybara-Service
parent 92f8c5b5b9
commit 12fc4071b6
  1. 6
      ruby/ext/google/protobuf_c/protobuf.h

@ -16,12 +16,6 @@
#undef NDEBUG
#endif
#include <ruby/version.h>
#if RUBY_API_VERSION_CODE < 20700
#error Protobuf requires Ruby >= 2.7
#endif
#include <assert.h> // Must be included after the NDEBUG logic above.
#include <ruby/encoding.h>
#include <ruby/vm.h>

Loading…
Cancel
Save