Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shopify_iossdk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
shopify_iossdk
Commits
0c43f899
Commit
0c43f899
authored
Apr 27, 2016
by
Brent Gulanowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecated methods.
parent
f1aebcaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
39 deletions
+0
-39
BUYObject.m
Mobile Buy SDK/Mobile Buy SDK/Models/BUYObject.m
+0
-39
No files found.
Mobile Buy SDK/Mobile Buy SDK/Models/BUYObject.m
View file @
0c43f899
...
...
@@ -39,45 +39,6 @@
@implementation
BUYObject
#pragma mark - Deprecated
-
(
instancetype
)
init
{
return
[
self
initWithModelManager
:
nil
JSONDictionary
:
nil
];
}
-
(
instancetype
)
initWithDictionary
:
(
NSDictionary
*
)
dictionary
{
return
[
self
initWithModelManager
:
nil
JSONDictionary
:
dictionary
];
}
+
(
NSArray
*
)
convertJSONArray
:
(
NSArray
*
)
json
block
:
(
void
(
^
)(
id
obj
))
createdBlock
{
NSMutableArray
*
objects
=
[[
NSMutableArray
alloc
]
init
];
for
(
NSDictionary
*
jsonObject
in
json
)
{
BUYObject
*
obj
=
[[
self
alloc
]
initWithDictionary
:
jsonObject
];
[
objects
addObject
:
obj
];
if
(
createdBlock
)
{
createdBlock
(
obj
);
}
}
return
objects
;
}
+
(
NSArray
*
)
convertJSONArray
:
(
NSArray
*
)
json
{
return
[
self
convertJSONArray
:
json
block
:
nil
];
}
+
(
instancetype
)
convertObject
:
(
id
)
object
{
BUYObject
*
convertedObject
=
nil
;
if
(
!
(
object
==
nil
||
[
object
isKindOfClass
:[
NSNull
class
]]))
{
convertedObject
=
[[
self
alloc
]
initWithDictionary
:
object
];
}
return
convertedObject
;
}
#pragma mark - Dirty Property Tracking
-
(
BOOL
)
isDirty
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment