Skip to content

Commit 13cf515

Browse files
committed
Remove LogSilencer
It's not essencial and for convenience only, but LogSilencer removed from protobuf with absl migration.
1 parent 5d1372d commit 13cf515

File tree

4 files changed

+1
-8
lines changed

4 files changed

+1
-8
lines changed

examples/libfuzzer/libfuzzer_bin_example.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
#include "port/protobuf.h"
2020
#include "src/libfuzzer/libfuzzer_macro.h"
2121

22-
protobuf_mutator::protobuf::LogSilencer log_silincer;
23-
2422
template <class Proto>
2523
using PostProcessor =
2624
protobuf_mutator::libfuzzer::PostProcessorRegistration<Proto>;

examples/libfuzzer/libfuzzer_example.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
#include "port/protobuf.h"
2020
#include "src/libfuzzer/libfuzzer_macro.h"
2121

22-
protobuf_mutator::protobuf::LogSilencer log_silincer;
23-
2422
template <class Proto>
2523
using PostProcessor =
2624
protobuf_mutator::libfuzzer::PostProcessorRegistration<Proto>;

examples/libxml2/libxml2_example.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@
2020
#include "src/libfuzzer/libfuzzer_macro.h"
2121

2222
namespace {
23-
protobuf_mutator::protobuf::LogSilencer log_silincer;
2423
void ignore(void* ctx, const char* msg, ...) {}
2524

2625
template <class T, class D>
2726
std::unique_ptr<T, D> MakeUnique(T* obj, D del) {
2827
return {obj, del};
2928
}
30-
}
29+
} // namespace
3130

3231
DEFINE_PROTO_FUZZER(const protobuf_mutator::xml::Input& message) {
3332
std::string xml = MessageToXml(message.document());

src/utf8_fix_test.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
namespace protobuf_mutator {
2121

22-
protobuf::LogSilencer log_silincer;
23-
2422
class FixUtf8StringTest : public ::testing::TestWithParam<int> {
2523
public:
2624
bool IsStructurallyValid(const std::string& s) {

0 commit comments

Comments
 (0)