From 09a0d2f170b17c1eef75d334f20e5f5c6d19b1c9 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 16 Jul 2016 01:10:08 +0100 Subject: Remove unused method. --- src/lib/image.cc | 11 ----------- src/lib/image.h | 1 - 2 files changed, 12 deletions(-) (limited to 'src/lib') 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; -- cgit v1.2.3