Skip to content

Commit 0f4ee5e

Browse files
Automated rollback of commit df04e01.
PiperOrigin-RevId: 852344735
1 parent 7400557 commit 0f4ee5e

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/google/protobuf/compiler/cpp/message.cc

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
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
}

src/google/protobuf/port.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,6 @@ enum { kCacheAlignment = alignof(max_align_t) }; // do the best we can
266266
// The maximum byte alignment we support.
267267
enum { kMaxMessageAlignment = 8 };
268268

269-
inline constexpr bool EnableProtoFieldPresenceHints() { return false; }
270-
271269
inline constexpr bool EnableStableExperiments() {
272270
#if defined(PROTOBUF_ENABLE_STABLE_EXPERIMENTS)
273271
return true;

0 commit comments

Comments
 (0)