Remove the HTMLNodeFilterValue enum since Reject and Skip are semantically equivalent

This commit is contained in:
iska
2015-06-05 17:05:22 +02:00
parent c1b18f527c
commit dc3de7a470
3 changed files with 8 additions and 15 deletions
+3 -3
View File
@@ -14,14 +14,14 @@
@implementation CommentNodeFilter
- (HTMLNodeFilterValue)acceptNode:(HTMLNode *)node
- (BOOL)acceptNode:(HTMLNode *)node
{
if (node.nodeType == HTMLNodeComment) {
if ([[(HTMLComment *)node data] rangeOfString:@"second"].location != NSNotFound) {
return HTMLNodeFilterAccept;
return YES;
}
}
return HTMLNodeFilterReject;
return NO;
}
@end