Skip to content

Commit 3e27634

Browse files
committed
Updated documentation and coding style
1 parent f7b22f1 commit 3e27634

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

WooCommerce/Classes/ViewRelated/Products/Cells/ProductsTabProductTableViewCell.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ extension ProductsTabProductTableViewCell: SearchResultCell {
6464

6565
extension ProductsTabProductTableViewCell {
6666
func update(viewModel: ProductsTabProductViewModel, imageService: ImageService) {
67-
6867
if let variationID = viewModel.productVariation?.productVariationID {
6968
// Add product variation ID with name
7069
// See more: https://github.com/woocommerce/woocommerce-ios/issues/4846

WooCommerce/Classes/ViewRelated/Products/Edit Product/ProductFormViewController.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -827,9 +827,6 @@ private extension ProductFormViewController {
827827
}
828828

829829
func updateNavigationBar() {
830-
831-
832-
833830
// Create action buttons based on view model
834831
let rightBarButtonItems: [UIBarButtonItem] = viewModel.actionButtons.reversed().map { buttonType in
835832
switch buttonType {

WooCommerce/Classes/ViewRelated/Products/Edit Product/ProductVariationFormViewModel.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,6 @@ extension ProductVariationFormViewModel {
281281
func updateProductVariations(from product: Product) {
282282
//no-op
283283
}
284-
285-
// func getProductVariationID() -> Int64? {
286-
// return productVariation.productVariation.productVariationID
287-
// }
288284
}
289285

290286
// MARK: Remote actions

WooCommerce/Classes/ViewRelated/Products/Variations/ProductVariationsViewController.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,14 +368,17 @@ extension ProductVariationsViewController: UITableViewDataSource {
368368

369369
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
370370
let cell = tableView.dequeueReusableCell(ProductsTabProductTableViewCell.self, for: indexPath)
371+
371372
let productVariation = resultsController.object(at: indexPath)
372373
let model = EditableProductVariationModel(productVariation: productVariation,
373374
allAttributes: allAttributes,
374375
parentProductSKU: parentProductSKU)
376+
375377
let viewModel = ProductsTabProductViewModel(productVariationModel: model)
376378
cell.update(viewModel: viewModel, imageService: imageService)
377379
cell.selectionStyle = .none
378380
cell.accessoryType = .disclosureIndicator
381+
379382
return cell
380383
}
381384
}

0 commit comments

Comments
 (0)