| Index: sync/internal_api/public/base/invalidation_util.cc
|
| diff --git a/sync/internal_api/public/base/invalidation_util.cc b/sync/internal_api/public/base/invalidation_util.cc
|
| index dfa43bd01c06738a23d1221bc4c8882fb86eab4d..64336776269b7ab3d8beda76cda2e49c00c3fe27 100644
|
| --- a/sync/internal_api/public/base/invalidation_util.cc
|
| +++ b/sync/internal_api/public/base/invalidation_util.cc
|
| @@ -14,12 +14,6 @@
|
| #include "google/cacheinvalidation/types.pb.h"
|
| #include "sync/internal_api/public/base/invalidation.h"
|
|
|
| -namespace invalidation {
|
| -void PrintTo(const invalidation::ObjectId& id, std::ostream* os) {
|
| - *os << syncer::ObjectIdToString(id);
|
| -}
|
| -} // namespace invalidation
|
| -
|
| namespace syncer {
|
|
|
| bool ObjectIdLessThan::operator()(const invalidation::ObjectId& lhs,
|
| @@ -47,22 +41,6 @@ bool InvalidationVersionLessThan::operator()(
|
| return a.version() < b.version();
|
| }
|
|
|
| -bool RealModelTypeToObjectId(ModelType model_type,
|
| - invalidation::ObjectId* object_id) {
|
| - std::string notification_type;
|
| - if (!RealModelTypeToNotificationType(model_type, ¬ification_type)) {
|
| - return false;
|
| - }
|
| - object_id->Init(ipc::invalidation::ObjectSource::CHROME_SYNC,
|
| - notification_type);
|
| - return true;
|
| -}
|
| -
|
| -bool ObjectIdToRealModelType(const invalidation::ObjectId& object_id,
|
| - ModelType* model_type) {
|
| - return NotificationTypeToRealModelType(object_id.name(), model_type);
|
| -}
|
| -
|
| scoped_ptr<base::DictionaryValue> ObjectIdToValue(
|
| const invalidation::ObjectId& object_id) {
|
| scoped_ptr<base::DictionaryValue> value(new base::DictionaryValue());
|
| @@ -92,40 +70,4 @@ std::string ObjectIdToString(
|
| return str;
|
| }
|
|
|
| -ObjectIdSet ModelTypeSetToObjectIdSet(ModelTypeSet model_types) {
|
| - ObjectIdSet ids;
|
| - for (ModelTypeSet::Iterator it = model_types.First(); it.Good(); it.Inc()) {
|
| - invalidation::ObjectId model_type_as_id;
|
| - if (!RealModelTypeToObjectId(it.Get(), &model_type_as_id)) {
|
| - DLOG(WARNING) << "Invalid model type " << it.Get();
|
| - continue;
|
| - }
|
| - ids.insert(model_type_as_id);
|
| - }
|
| - return ids;
|
| -}
|
| -
|
| -ModelTypeSet ObjectIdSetToModelTypeSet(const ObjectIdSet& ids) {
|
| - ModelTypeSet model_types;
|
| - for (ObjectIdSet::const_iterator it = ids.begin(); it != ids.end(); ++it) {
|
| - ModelType model_type;
|
| - if (!ObjectIdToRealModelType(*it, &model_type)) {
|
| - DLOG(WARNING) << "Invalid object ID " << ObjectIdToString(*it);
|
| - continue;
|
| - }
|
| - model_types.Put(model_type);
|
| - }
|
| - return model_types;
|
| -}
|
| -
|
| -std::string InvalidationToString(
|
| - const invalidation::Invalidation& invalidation) {
|
| - std::stringstream ss;
|
| - ss << "{ ";
|
| - ss << "object_id: " << ObjectIdToString(invalidation.object_id()) << ", ";
|
| - ss << "version: " << invalidation.version();
|
| - ss << " }";
|
| - return ss.str();
|
| -}
|
| -
|
| } // namespace syncer
|
|
|