summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/base_node.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sync/internal_api/base_node.cc')
-rw-r--r--sync/internal_api/base_node.cc18
1 files changed, 0 insertions, 18 deletions
diff --git a/sync/internal_api/base_node.cc b/sync/internal_api/base_node.cc
index 887e642..ac04768 100644
--- a/sync/internal_api/base_node.cc
+++ b/sync/internal_api/base_node.cc
@@ -40,24 +40,6 @@ static int64 IdToMetahandle(syncable::BaseTransaction* trans,
return entry.GetMetahandle();
}
-static bool EndsWithSpace(const std::string& string) {
- return !string.empty() && *string.rbegin() == ' ';
-}
-
-// In the reverse direction, if a server name matches the pattern of a
-// server-illegal name followed by one or more spaces, remove the trailing
-// space.
-static void ServerNameToSyncAPIName(const std::string& server_name,
- std::string* out) {
- CHECK(out);
- int length_to_copy = server_name.length();
- if (IsNameServerIllegalAfterTrimming(server_name) &&
- EndsWithSpace(server_name)) {
- --length_to_copy;
- }
- *out = std::string(server_name.c_str(), length_to_copy);
-}
-
BaseNode::BaseNode() : password_data_(new sync_pb::PasswordSpecificsData) {}
BaseNode::~BaseNode() {}