Skip to content

Commit d5e149f

Browse files
committed
Removed editable from Product Visibility rows
1 parent f0e7679 commit d5e149f

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

WooCommerce/Classes/ViewRelated/Products/Edit Product/Product Settings/Visibility/ProductVisibilityViewController.swift

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,7 @@ private extension ProductVisibilityViewController {
209209
let row = sections[indexPath.section].rows[indexPath.row]
210210
cell.selectionStyle = .default
211211
cell.textLabel?.text = row.description
212-
if row.editable {
213-
cell.accessoryType = .none
214-
}
215-
else {
216-
cell.accessoryType = row.visibility == visibility ? .checkmark : .none
217-
}
212+
cell.accessoryType = row.visibility == visibility ? .checkmark : .none
218213
}
219214

220215
func configurePasswordFieldCell(cell: TitleAndTextFieldWithImageTableViewCell, indexPath: IndexPath) {
@@ -266,15 +261,6 @@ extension ProductVisibilityViewController {
266261
}
267262
}
268263

269-
var editable: Bool {
270-
switch self {
271-
case .passwordField:
272-
return true
273-
default:
274-
return false
275-
}
276-
}
277-
278264
var visibility: ProductVisibility {
279265
switch self {
280266
case .publicVisibility:

0 commit comments

Comments
 (0)