You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: JSONKit.m
-33Lines changed: 0 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -2525,7 +2525,6 @@ static int jk_encode_add_atom_to_buffer(JKEncodeState *encodeState, void *object
2525
2525
return(0);
2526
2526
}
2527
2527
2528
-
#if0
2529
2528
// When we encounter a class that we do not handle, and we have either a delegate or block that the user supplied to format unsupported classes,
2530
2529
// we "re-run" the object check. However, we re-run the object check exactly ONCE. If the user supplies an object that isn't one of the
2531
2530
// supported classes, we fail the second type (i.e., double fault error).
@@ -2553,39 +2552,7 @@ static int jk_encode_add_atom_to_buffer(JKEncodeState *encodeState, void *object
2553
2552
else { jk_encode_error(encodeState, @"Unable to serialize object class %@ that was returned by the unsupported class formatter. Original object class was %@.", (object == NULL) ? @"NULL" : NSStringFromClass([object class]), NSStringFromClass([encodeCacheObject class])); return(1); }
2554
2553
}
2555
2554
}
2556
-
#else
2557
2555
2558
-
// When we encounter a class that we do not handle, and we have either a delegate or block that the user supplied to format unsupported classes,
2559
-
// we "re-run" the object check. However, we re-run the object check exactly ONCE. If the user supplies an object that isn't one of the
2560
-
// supported classes, we fail the second type (i.e., double fault error).
if(object == encodeCacheObject) { jk_encode_error(encodeState, @"Unable to serialize object class %@.", NSStringFromClass([encodeCacheObject class])); return(1); }
2584
-
else { jk_encode_error(encodeState, @"Unable to serialize object class %@ that was returned by the unsupported class formatter. Original object class was %@.", (object == NULL) ? @"NULL" : NSStringFromClass([object class]), NSStringFromClass([encodeCacheObject class])); return(1); }
2585
-
}
2586
-
}
2587
-
2588
-
#endif
2589
2556
// This is here for the benefit of the optimizer. It allows the optimizer to do loop invariant code motion for the JKClassArray
2590
2557
// and JKClassDictionary cases when printing simple, single characters via jk_encode_write(), which is actually a macro:
0 commit comments