Revert "Merge changes from topic "protobuf3.5.2""
This reverts commit 584979bf55601bd23e533d704a75cd0e95af66b9, reversing
changes made to 219bbcdcd5b1dbf19758ff2e75d971b98215896d:
Remove libprotobuf-java-lite
Update stubs
Revert "Wrap liblog dependency in GOOGLE_PROTOBUF_MIN_LOG_LEVEL"
Update javamicro to compile against v3.5.2
Update Android.bp to match BUILD
Rerun configure
Merge tag 'v3.5.2' into master
Revert "Remove 2 usage of isspace as they are not stl port compatible"
Revert "Use GOOGLE_CHECK Macro for validation"
Revert "Emit macros with proper parentheses."
Revert "Generate syntactically correct java for imports from classes with no packages."
Revert "Fix some unused parameter warnings"
Revert "protobuf: work around a static analyzer bug"
Revert "Suppress clang-analyzer-core.uninitialized.UndefReturn warning."
Change-Id: Ia04c0b15ebd45e8c7e02edaa6e1f10aeb11ef337
diff --git a/examples/list_people.cc b/examples/list_people.cc
index b309c59..68e5666 100644
--- a/examples/list_people.cc
+++ b/examples/list_people.cc
@@ -1,16 +1,11 @@
// See README.txt for information and build instructions.
-#include <fstream>
-#include <google/protobuf/util/time_util.h>
#include <iostream>
+#include <fstream>
#include <string>
-
#include "addressbook.pb.h"
-
using namespace std;
-using google::protobuf::util::TimeUtil;
-
// Iterates though all people in the AddressBook and prints info about them.
void ListPeople(const tutorial::AddressBook& address_book) {
for (int i = 0; i < address_book.people_size(); i++) {
@@ -35,15 +30,9 @@
case tutorial::Person::WORK:
cout << " Work phone #: ";
break;
- default:
- cout << " Unknown phone #: ";
- break;
}
cout << phone_number.number() << endl;
}
- if (person.has_last_updated()) {
- cout << " Updated: " << TimeUtil::ToString(person.last_updated()) << endl;
- }
}
}