@@ -88,12 +88,6 @@ const canBeAutofilled = async (input, device) => {
88
88
return Boolean ( canAutofill ) ;
89
89
} ;
90
90
91
- /**
92
- * @param {import('./matching.js').SupportedSubTypes | 'unknown' } subtype
93
- * @returns {boolean }
94
- */
95
- const canShowCCIcon = ( subtype ) => subtype === 'cardNumber' || subtype === 'cardSecurityCode' ;
96
-
97
91
/**
98
92
* A map of config objects. These help by centralising here some complexity
99
93
* @type {InputTypeConfig }
@@ -158,27 +152,8 @@ const inputTypeConfig = {
158
152
creditCards : {
159
153
type : 'creditCards' ,
160
154
displayName : 'credit cards' ,
161
- getIconBase : ( input , form ) => {
162
- const { device } = form ;
163
- const subtype = getInputSubtype ( input ) ;
164
-
165
- if ( subtype === 'cardName' ) return '' ;
166
-
167
- if ( canBeInteractedWith ( input ) && device . globalConfig . isMobileApp && canShowCCIcon ( subtype ) )
168
- return ddgPasswordIcons . ddgCcIconBase ;
169
-
170
- return '' ;
171
- } ,
172
- getIconFilled : ( input , form ) => {
173
- const { device } = form ;
174
- const subtype = getInputSubtype ( input ) ;
175
-
176
- if ( subtype === 'cardName' ) return '' ;
177
-
178
- if ( device . globalConfig . isMobileApp && canShowCCIcon ( subtype ) ) return ddgPasswordIcons . ddgCcIconFilled ;
179
-
180
- return '' ;
181
- } ,
155
+ getIconBase : ( ) => '' ,
156
+ getIconFilled : ( ) => '' ,
182
157
getIconAlternate : ( ) => '' ,
183
158
shouldDecorate : async ( input , { device } ) => {
184
159
return canBeAutofilled ( input , device ) ;
@@ -243,4 +218,4 @@ const isFieldDecorated = (input) => {
243
218
return input . hasAttribute ( constants . ATTR_INPUT_TYPE ) ;
244
219
} ;
245
220
246
- export { getInputConfig , getInputConfigFromType , canBeInteractedWith , isFieldDecorated , canShowCCIcon } ;
221
+ export { getInputConfig , getInputConfigFromType , canBeInteractedWith , isFieldDecorated } ;
0 commit comments