Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Simplify tableEditingController APIs #84

Merged
merged 1 commit into from Dec 20, 2016

Conversation

jessesquires
Copy link
Owner

@jessesquires jessesquires commented Dec 19, 2016

In reviewing #83, I realized we can simplify TableEditingController more.

I think @psartzetakis was following the existing patterns:

  1. We pass closures
  2. Those objects conform to a protocol
  3. In the protocol methods, we just call the closures
  4. The infra only speaks to the protocol

In the case of TableEditingController, there is no protocol. We just need to pass in these 2 closures.

So, we can remove these internal functions and just call the closure properties directly.

@jessesquires jessesquires added this to the 6.1.0 milestone Dec 19, 2016
@codecov-io
Copy link

codecov-io commented Dec 19, 2016

Current coverage is 93.54% (diff: 100%)

Merging #84 into develop will decrease coverage by 0.07%

@@            develop        #84   diff @@
==========================================
  Files            10         10          
  Lines           391        387     -4   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits            366        362     -4   
  Misses           25         25          
  Partials          0          0          

Sunburst

Diff Coverage File Path
•••••••••• 100% Source/DataSourceProvider.swift
•••••••••• 100% Source/TableEditingController.swift

Powered by Codecov. Last update f02f64f...0fe455b

Copy link
Collaborator

@psartzetakis psartzetakis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course ... you are right..😀. Nice one. 👍🏻

@jessesquires jessesquires merged commit 3f76db7 into develop Dec 20, 2016
@jessesquires jessesquires deleted the refine-table-controller branch December 20, 2016 18:31
@jessesquires jessesquires modified the milestones: 6.1.0, 7.0.0 Nov 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants