Skip to content

Commit

Permalink
Revert "Don't panic on DeviceN colorspaces"
Browse files Browse the repository at this point in the history
This reverts commit 27743f2.

This commit breaks semver. Let's reland it later.
  • Loading branch information
jrmuizel committed Aug 29, 2024
1 parent 330f9e5 commit 23634ee
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,6 @@ pub enum ColorSpace {
DeviceGray,
DeviceRGB,
DeviceCMYK,
DeviceN,
Pattern,
CalRGB(CalRGB),
CalGray(CalGray),
Expand Down Expand Up @@ -1460,7 +1459,6 @@ fn make_colorspace<'a>(doc: &'a Document, name: &[u8], resources: &'a Dictionary
"DeviceGray" => ColorSpace::DeviceGray,
"DeviceRGB" => ColorSpace::DeviceRGB,
"DeviceCMYK" => ColorSpace::DeviceCMYK,
"DeviceN" => ColorSpace::DeviceN,
_ => {
panic!("color_space {:?} {:?} {:?}", name, cs_name, cs)
}
Expand Down

0 comments on commit 23634ee

Please sign in to comment.