diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 23:34:38 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 23:34:38 +0000 |
commit | a20cf38e9b2cd094bc4ae20da50588cdd2b79933 (patch) | |
tree | 00f98a4048929b122cc3962ed1edfbeb904b6e2f /chrome | |
parent | a3b14980c71bbe7933901de5a5ee061d158aaa9c (diff) | |
download | chromium_src-a20cf38e9b2cd094bc4ae20da50588cdd2b79933.zip chromium_src-a20cf38e9b2cd094bc4ae20da50588cdd2b79933.tar.gz chromium_src-a20cf38e9b2cd094bc4ae20da50588cdd2b79933.tar.bz2 |
Remove FormField::priority as it's not used by AutoFill++.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/657015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39799 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/autofill/address_field.h | 1 | ||||
-rw-r--r-- | chrome/browser/autofill/credit_card_field.h | 1 | ||||
-rw-r--r-- | chrome/browser/autofill/form_field.cc | 2 | ||||
-rw-r--r-- | chrome/browser/autofill/form_field.h | 11 | ||||
-rw-r--r-- | chrome/browser/autofill/name_field.h | 2 | ||||
-rw-r--r-- | chrome/browser/autofill/phone_field.h | 2 |
6 files changed, 0 insertions, 19 deletions
diff --git a/chrome/browser/autofill/address_field.h b/chrome/browser/autofill/address_field.h index bd568d8..e95da58 100644 --- a/chrome/browser/autofill/address_field.h +++ b/chrome/browser/autofill/address_field.h @@ -16,7 +16,6 @@ class AddressField : public FormField { public: virtual bool GetFieldInfo(FieldTypeMap* field_type_map) const; virtual FormFieldType GetFormFieldType() const { return kAddressType; } - virtual int priority() const { return 3; } static AddressField* Parse(std::vector<AutoFillField*>::const_iterator* iter, bool is_ecml); diff --git a/chrome/browser/autofill/credit_card_field.h b/chrome/browser/autofill/credit_card_field.h index d870db7..bad1eb9 100644 --- a/chrome/browser/autofill/credit_card_field.h +++ b/chrome/browser/autofill/credit_card_field.h @@ -16,7 +16,6 @@ class CreditCardField : public FormField { // FormField implementation: virtual bool GetFieldInfo(FieldTypeMap* field_type_map) const; virtual FormFieldType GetFormFieldType() const { return kCreditCardType; } - virtual int priority() const { return 4; } static CreditCardField* Parse( std::vector<AutoFillField*>::const_iterator* iter, diff --git a/chrome/browser/autofill/form_field.cc b/chrome/browser/autofill/form_field.cc index 2ebcb59..b4d20b1 100644 --- a/chrome/browser/autofill/form_field.cc +++ b/chrome/browser/autofill/form_field.cc @@ -36,8 +36,6 @@ class EmailField : public FormField { return NULL; } - virtual int priority() const { return 1; } - private: explicit EmailField(AutoFillField *field) : field_(field) {} diff --git a/chrome/browser/autofill/form_field.h b/chrome/browser/autofill/form_field.h index 72fbb22..78d2109 100644 --- a/chrome/browser/autofill/form_field.h +++ b/chrome/browser/autofill/form_field.h @@ -81,10 +81,6 @@ class FormField { // Returns the type of form field of the class implementing this interface. virtual FormFieldType GetFormFieldType() const { return kOtherFieldType; } - // TODO(jhawkins): I'm pretty sure this is not necessary in AutoFill++ because - // we use a static dialog setup. - virtual int priority() const = 0; - // Returns true if |field| contains the regexp |pattern| in the name or label. static bool Match(AutoFillField* field, const string16& pattern); @@ -130,13 +126,6 @@ class FormFieldSet : public std::vector<FormField*> { public: explicit FormFieldSet(FormStructure* form); - class FormFieldSorter { - public: - bool operator() (FormField *v1, FormField *v2) { - return v1->priority() < v2->priority(); - } - }; - ~FormFieldSet() { for (iterator i = begin(); i != end(); ++i) delete *i; diff --git a/chrome/browser/autofill/name_field.h b/chrome/browser/autofill/name_field.h index c827d6c..5709c12 100644 --- a/chrome/browser/autofill/name_field.h +++ b/chrome/browser/autofill/name_field.h @@ -17,8 +17,6 @@ class NameField : public FormField { static NameField* Parse(std::vector<AutoFillField*>::const_iterator* iter, bool is_ecml); - virtual int priority() const { return 0; } - protected: NameField() {} diff --git a/chrome/browser/autofill/phone_field.h b/chrome/browser/autofill/phone_field.h index 18dabe3..6294298 100644 --- a/chrome/browser/autofill/phone_field.h +++ b/chrome/browser/autofill/phone_field.h @@ -25,8 +25,6 @@ class PhoneField : public FormField { virtual bool GetFieldInfo(FieldTypeMap* field_type_map) const; - virtual int priority() const { return 2; } - protected: PhoneField(); |