Skip to content

Commit

Permalink
Breaking change: Promote ExtensionRange to a proper class
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 589938315
  • Loading branch information
mkruskal-google authored and copybara-github committed Dec 11, 2023
1 parent 229906f commit 5b12bc8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/google/protobuf/descriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,7 @@ class PROTOBUF_EXPORT Descriptor : private internal::SymbolBase {
// Never nullptr.
const Descriptor* containing_type() const { return containing_type_; }

#ifdef PROTOBUF_FUTURE_EXTENSION_RANGE_CLASS

private:
#endif
int start_;
int end_;
const ExtensionRangeOptions* options_;
Expand Down
4 changes: 0 additions & 4 deletions src/google/protobuf/port_def.inc
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,6 @@ static_assert(PROTOBUF_ABSL_MIN(20230125, 3),
// Owner: ezb@
#define PROTOBUF_FUTURE_REMOVE_CONST_REPEATEDFIELD_GETARENA_API 1

// Used to make ExtensionRange into a fully-fledged descriptor class.
// Owner: mkruskal@
#define PROTOBUF_FUTURE_EXTENSION_RANGE_CLASS 1

// Used to lock down wrong ctype usages in proto file.
// Owner: jieluo@
#define PROTOBUF_FUTURE_REMOVE_WRONG_CTYPE 1
Expand Down

0 comments on commit 5b12bc8

Please sign in to comment.