Commit 21e0df9d authored by Matthias Körber's avatar Matthias Körber Committed by Commit Bot

Removed unused methods from |AutofillType|.

Bug: 1007974
Change-Id: Id3df3b76704a981b3e1f47b0b18b669edceb72f1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1826658
Commit-Queue: Vadym Doroshenko <dvadym@chromium.org>
Reviewed-by: default avatarVadym Doroshenko <dvadym@chromium.org>
Cr-Commit-Position: refs/heads/master@{#700176}
parent 85b48a37
...@@ -439,78 +439,6 @@ ServerFieldType AutofillType::GetStorableType() const { ...@@ -439,78 +439,6 @@ ServerFieldType AutofillType::GetStorableType() const {
return UNKNOWN_TYPE; return UNKNOWN_TYPE;
} }
// static
ServerFieldType AutofillType::GetEquivalentBillingFieldType(
ServerFieldType field_type) {
switch (field_type) {
case ADDRESS_HOME_LINE1:
return ADDRESS_BILLING_LINE1;
case ADDRESS_HOME_LINE2:
return ADDRESS_BILLING_LINE2;
case ADDRESS_HOME_APT_NUM:
return ADDRESS_BILLING_APT_NUM;
case ADDRESS_HOME_CITY:
return ADDRESS_BILLING_CITY;
case ADDRESS_HOME_STATE:
return ADDRESS_BILLING_STATE;
case ADDRESS_HOME_ZIP:
return ADDRESS_BILLING_ZIP;
case ADDRESS_HOME_COUNTRY:
return ADDRESS_BILLING_COUNTRY;
case ADDRESS_HOME_STREET_ADDRESS:
return ADDRESS_BILLING_STREET_ADDRESS;
case ADDRESS_HOME_SORTING_CODE:
return ADDRESS_BILLING_SORTING_CODE;
case ADDRESS_HOME_DEPENDENT_LOCALITY:
return ADDRESS_BILLING_DEPENDENT_LOCALITY;
case PHONE_HOME_WHOLE_NUMBER:
return PHONE_BILLING_WHOLE_NUMBER;
case PHONE_HOME_NUMBER:
return PHONE_BILLING_NUMBER;
case PHONE_HOME_CITY_CODE:
return PHONE_BILLING_CITY_CODE;
case PHONE_HOME_COUNTRY_CODE:
return PHONE_BILLING_COUNTRY_CODE;
case PHONE_HOME_CITY_AND_NUMBER:
return PHONE_BILLING_CITY_AND_NUMBER;
case NAME_FIRST:
return NAME_BILLING_FIRST;
case NAME_MIDDLE:
return NAME_BILLING_MIDDLE;
case NAME_LAST:
return NAME_BILLING_LAST;
case NAME_MIDDLE_INITIAL:
return NAME_BILLING_MIDDLE_INITIAL;
case NAME_FULL:
return NAME_BILLING_FULL;
case NAME_SUFFIX:
return NAME_BILLING_SUFFIX;
default:
return field_type;
}
}
std::string AutofillType::ToString() const { std::string AutofillType::ToString() const {
if (IsUnknown()) if (IsUnknown())
return "UNKNOWN_TYPE"; return "UNKNOWN_TYPE";
......
...@@ -48,11 +48,6 @@ class AutofillType { ...@@ -48,11 +48,6 @@ class AutofillType {
// Serializes |this| type to a string. // Serializes |this| type to a string.
std::string ToString() const; std::string ToString() const;
// Maps |field_type| to the corresponding billing field type if the field type
// is an address, name, or phone number type.
static ServerFieldType GetEquivalentBillingFieldType(
ServerFieldType field_type);
// Translates the ServerFieldType values into the corresponding strings. // Translates the ServerFieldType values into the corresponding strings.
static std::string ServerFieldTypeToString(ServerFieldType type); static std::string ServerFieldTypeToString(ServerFieldType type);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment