File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 5252#include " google/protobuf/descriptor.pb.h"
5353#include " google/protobuf/has_bits.h"
5454#include " google/protobuf/io/printer.h"
55- #include " google/protobuf/port.h"
5655#include " google/protobuf/wire_format.h"
5756#include " google/protobuf/wire_format_lite.h"
5857
@@ -159,13 +158,9 @@ std::string GenerateConditionMaybeWithProbability(
159158 (is_batch ? " Batch" : " " ), (is_repeated ? " ForRepeated" : " " ),
160159 *has_array_index, mask);
161160 }
162- // TODO: b/393587858 - Remove the experimental flag once the ablation
163- // experiment is complete.
164- if constexpr (internal::EnableProtoFieldPresenceHints ()) {
165- if (probability.has_value ()) {
166- return absl::StrFormat (" PROTOBUF_EXPECT_TRUE_WITH_PROBABILITY(%s, %.3f)" ,
167- condition, *probability);
168- }
161+ if (probability.has_value ()) {
162+ return absl::StrFormat (" PROTOBUF_EXPECT_TRUE_WITH_PROBABILITY(%s, %.3f)" ,
163+ condition, *probability);
169164 }
170165 return condition;
171166}
Original file line number Diff line number Diff line change @@ -266,8 +266,6 @@ enum { kCacheAlignment = alignof(max_align_t) }; // do the best we can
266266// The maximum byte alignment we support.
267267enum { kMaxMessageAlignment = 8 };
268268
269- inline constexpr bool EnableProtoFieldPresenceHints () { return false ; }
270-
271269inline constexpr bool EnableStableExperiments () {
272270#if defined(PROTOBUF_ENABLE_STABLE_EXPERIMENTS)
273271 return true ;
You can’t perform that action at this time.
0 commit comments