This repository was archived by the owner on Aug 14, 2019. It is now read-only.
Commit 5e9e368
committed
Remove unneeded CGContext Save and Restore calls.
In the private class methods of JSQMessagesAvatarImageFactory
(jsq_imageWitInitials, jsq_circularImage) there were calls to save and restore
the state of the graphic context.
The calls are not needed because UIGraphicsBeginImageContext creates a new
context in a default state.1 parent 4c05c28 commit 5e9e368
1 file changed
Lines changed: 1 addition & 5 deletions
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
141 | | - | |
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
| |||
156 | 154 | | |
157 | 155 | | |
158 | 156 | | |
159 | | - | |
160 | 157 | | |
161 | 158 | | |
162 | 159 | | |
| |||
168 | 165 | | |
169 | 166 | | |
170 | 167 | | |
171 | | - | |
172 | | - | |
| 168 | + | |
173 | 169 | | |
174 | 170 | | |
175 | 171 | | |
| |||
0 commit comments