Skip to content

Commit

Permalink
Remove unused colorSpace
Browse files Browse the repository at this point in the history
The `colorSpace` variable in `Image.decoded` was assigned but never used.
  • Loading branch information
pNre authored Jun 11, 2017
1 parent 0093051 commit 3827ccc
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 3827ccc

Please sign in to comment.