Index: chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc |
diff --git a/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc b/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc |
index 5dc33e3ca7fcaa7ac0e893d1fb92cb964ab64a4e..1ef080bad9602401601b5aafcac7b60ca68ddd30 100644 |
--- a/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc |
+++ b/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc |
@@ -203,29 +203,6 @@ bool FieldForType(ServerFieldType server_type, |
} |
} |
-void CreateAddressData( |
- const base::Callback<base::string16(const AutofillType&)>& get_info, |
- AddressData* address_data) { |
- address_data->recipient = UTF16ToUTF8(get_info.Run(AutofillType(NAME_FULL))); |
- address_data->country_code = UTF16ToUTF8( |
- get_info.Run(AutofillType(HTML_TYPE_COUNTRY_CODE, HTML_MODE_SHIPPING))); |
- DCHECK_EQ(2U, address_data->country_code.size()); |
- address_data->administrative_area = UTF16ToUTF8( |
- get_info.Run(AutofillType(ADDRESS_HOME_STATE))); |
- address_data->locality = UTF16ToUTF8( |
- get_info.Run(AutofillType(ADDRESS_HOME_CITY))); |
- address_data->dependent_locality = UTF16ToUTF8( |
- get_info.Run(AutofillType(ADDRESS_HOME_DEPENDENT_LOCALITY))); |
- address_data->sorting_code = UTF16ToUTF8( |
- get_info.Run(AutofillType(ADDRESS_HOME_SORTING_CODE))); |
- address_data->postal_code = UTF16ToUTF8( |
- get_info.Run(AutofillType(ADDRESS_HOME_ZIP))); |
- base::SplitString( |
- UTF16ToUTF8(get_info.Run(AutofillType(ADDRESS_HOME_STREET_ADDRESS))), |
- '\n', |
- &address_data->address_lines); |
-} |
- |
bool CountryIsFullySupported(const std::string& country_code) { |
DCHECK_EQ(2U, country_code.size()); |
std::vector< ::i18n::addressinput::AddressUiComponent> components = |