Skip to content

Commit

Permalink
Removed the // validate comments out of the machine generated templat…
Browse files Browse the repository at this point in the history
…es since they don't do anything.
  • Loading branch information
justin committed Mar 6, 2016
1 parent 14893d8 commit 92cf590
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 0 additions & 2 deletions templates/machine.h.motemplate
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ NS_ASSUME_NONNULL_BEGIN
- (void)set<$Attribute.name.initialCapitalString$>Value:(<$Attribute.scalarAttributeType$>)value_;
<$endif$>
<$endif$>
//- (BOOL)validate<$Attribute.name.initialCapitalString$>:(id*)value_ error:(NSError**)error_;
<$endif$>
<$endif$>
<$endforeach do$>
Expand All @@ -86,7 +85,6 @@ NS_ASSUME_NONNULL_BEGIN
- (<$if Relationship.optional$>nullable <$endif$><$Relationship.mutableCollectionClassName$>*)<$Relationship.name$>Set;
<$else$>
@property (nonatomic, strong<$if Relationship.optional$>, nullable<$endif$>) <$Relationship.destinationEntity.managedObjectClassName$> *<$Relationship.name$>;
//- (BOOL)validate<$Relationship.name.initialCapitalString$>:(id*)value_ error:(NSError**)error_;
<$endif$>
<$endforeach do$>
<$foreach FetchRequest prettyFetchRequests do$>
Expand Down
2 changes: 1 addition & 1 deletion templates/machine.m.motemplate
Original file line number Diff line number Diff line change
Expand Up @@ -303,4 +303,4 @@
return @"<$UserInfo.value$>";
}<$endforeach do$>
@end
<$endif$>
<$endif$>
7 changes: 2 additions & 5 deletions templates/machine.swift.motemplate
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public enum <$sanitizedManagedObjectClassName$>UserInfo: String {<$foreach UserI
class _<$sanitizedManagedObjectClassName$>: <$customSuperentity$> {

// MARK: - Class methods

<$if (hasCustomSuperclass || (hasCustomSuperentity && TemplateVar.overrideBaseClass))$>override <$endif$>public class func entityName () -> String {
return "<$name$>"
}
Expand All @@ -47,7 +47,7 @@ class _<$sanitizedManagedObjectClassName$>: <$customSuperentity$> {
public override init(entity: NSEntityDescription, insertIntoManagedObjectContext context: NSManagedObjectContext!) {
super.init(entity: entity, insertIntoManagedObjectContext: context)
}

public convenience init(managedObjectContext: NSManagedObjectContext!) {
let entity = _<$sanitizedManagedObjectClassName$>.entity(managedObjectContext)
self.init(entity: entity, insertIntoManagedObjectContext: managedObjectContext)
Expand Down Expand Up @@ -83,7 +83,6 @@ class _<$sanitizedManagedObjectClassName$>: <$customSuperentity$> {
var <$Attribute.name$>: <$Attribute.objectAttributeType$><$if Attribute.isOptional$>?<$endif$>
<$endif$>
<$endif$>
// func validate<$Attribute.name.initialCapitalString$>(value: AutoreleasingUnsafeMutablePointer<AnyObject>, error: NSErrorPointer) -> Bool {}
<$endif$>
<$endforeach do$>

Expand All @@ -96,8 +95,6 @@ class _<$sanitizedManagedObjectClassName$>: <$customSuperentity$> {
<$else$>
@NSManaged public
var <$Relationship.name$>: <$Relationship.destinationEntity.sanitizedManagedObjectClassName$><$if Relationship.isOptional$>?<$endif$>

// func validate<$Relationship.name.initialCapitalString$>(value: AutoreleasingUnsafeMutablePointer<AnyObject>, error: NSErrorPointer) -> Bool {}
<$endif$>
<$endforeach do$>

Expand Down

0 comments on commit 92cf590

Please sign in to comment.