I agree... one or the other can be public. It wasn't clear to me via the
specification that we should only expose one. enumerateConflictsUsingBlock
will be private for now.


On Mon, Mar 31, 2014 at 3:42 AM, Mike Rhodes <notifications@github.com>wrote:

> In Classes/common/CDTDatastore+Conflicts.h:
>
> > +
> > +
> > +
> > +/**
> > + * Get all document ids in the datastore that have a conflict in its revision tree.
> > + *
> > + * Returns an array of NSString* document ids.
> > + */
> > +-(NSArray*) getConflictedDocumentIds;
> > +
> > +/**
> > + * Enumerate through all documents with a conflict, allowing
> > + * the caller to handle each conflicting document within the
> > + * supplied block.
> > + */
> > +-(void) enumerateConflictsUsingBlock:(void (^)(NSString *documentId, NSUInteger idx, BOOL *stop))block;
>
> Does this need to be public at this time? We're providing two methods
> which do essentially the same job (the other being
> -getConflictedDocumentIds.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/cloudant/CDTDatastore/pull/22/files#r11110512>
> .
>