mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 20:31:13 +08:00
Remove unnecessary initializer and syntehsized ivars from RKMappingTest
This commit is contained in:
@@ -35,15 +35,6 @@
|
||||
/// @name Creating Tests
|
||||
///-----------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
Creates and returns a new test for a given object mapping and source object.
|
||||
|
||||
@param mapping The object mapping being tested.
|
||||
@param sourceObject The source object being mapped.
|
||||
@return A new mapping test object for a mapping and sourceObject.
|
||||
*/
|
||||
+ (RKMappingTest *)testForMapping:(RKObjectMapping *)mapping object:(id)sourceObject;
|
||||
|
||||
/**
|
||||
Creates and returns a new test for a given object mapping, source object and destination
|
||||
object.
|
||||
|
||||
@@ -47,7 +47,6 @@ BOOL RKObjectIsValueEqualToValue(id sourceValue, id destinationValue);
|
||||
|
||||
@implementation RKMappingTestEvent
|
||||
|
||||
|
||||
+ (RKMappingTestEvent *)eventWithMapping:(RKAttributeMapping *)mapping value:(id)value
|
||||
{
|
||||
RKMappingTestEvent *event = [RKMappingTestEvent new];
|
||||
@@ -94,12 +93,6 @@ BOOL RKObjectIsValueEqualToValue(id sourceValue, id destinationValue);
|
||||
|
||||
@implementation RKMappingTest
|
||||
|
||||
|
||||
+ (RKMappingTest *)testForMapping:(RKObjectMapping *)mapping object:(id)sourceObject
|
||||
{
|
||||
return [[self alloc] initWithMapping:mapping sourceObject:sourceObject destinationObject:nil];
|
||||
}
|
||||
|
||||
+ (RKMappingTest *)testForMapping:(RKObjectMapping *)mapping sourceObject:(id)sourceObject destinationObject:(id)destinationObject
|
||||
{
|
||||
return [[self alloc] initWithMapping:mapping sourceObject:sourceObject destinationObject:destinationObject];
|
||||
|
||||
Reference in New Issue
Block a user