Skip to content

Commit

Permalink
Merge pull request onevcat#707 from pNre/patch-1
Browse files Browse the repository at this point in the history
Remove unused colorSpace
  • Loading branch information
onevcat authored Jun 11, 2017
2 parents 0093051 + 3827ccc commit da4adeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Image.swift
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ extension Kingfisher where Base: Image {
assertionFailure("[Kingfisher] Decoding only works for CG-based image.")
return base
}
let colorSpace = CGColorSpaceCreateDeviceRGB()

guard let context = beginContext(size: CGSize(width: imageRef.width, height: imageRef.height)) else {
assertionFailure("[Kingfisher] Decoding fails to create a valid context.")
return base
Expand Down

0 comments on commit da4adeb

Please sign in to comment.