From: Carl Hetherington Date: Sat, 16 Jul 2016 00:10:08 +0000 (+0100) Subject: Remove unused method. X-Git-Tag: v2.9.4~7 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=09a0d2f170b17c1eef75d334f20e5f5c6d19b1c9;p=dcpomatic.git Remove unused method. --- diff --git a/src/lib/image.cc b/src/lib/image.cc index 01dc5b742..1735bb38a 100644 --- a/src/lib/image.cc +++ b/src/lib/image.cc @@ -83,17 +83,6 @@ Image::sample_size (int n) const ); } -int -Image::components () const -{ - AVPixFmtDescriptor const * d = av_pix_fmt_desc_get(_pixel_format); - if (!d) { - throw PixelFormatError ("components()", _pixel_format); - } - - return d->nb_components; -} - /** @return Number of planes */ int Image::planes () const diff --git a/src/lib/image.h b/src/lib/image.h index 08fdceaa5..c5fc3dd2d 100644 --- a/src/lib/image.h +++ b/src/lib/image.h @@ -54,7 +54,6 @@ public: bool aligned () const; int planes () const; - int components () const; int line_factor (int) const; dcp::Size sample_size (int) const;