Remove unused method.
authorCarl Hetherington <cth@carlh.net>
Sat, 16 Jul 2016 00:10:08 +0000 (01:10 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 16 Jul 2016 00:10:08 +0000 (01:10 +0100)
src/lib/image.cc
src/lib/image.h

index 01dc5b7429098c4e98ae148ac55b710184f873f0..1735bb38ad81433a9e482e3628b5a4c0175dde46 100644 (file)
@@ -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
index 08fdceaa598ae546528ae7b00de2ddfed0bd834c..c5fc3dd2db47d11af362cd757c6b38a12d33efe6 100644 (file)
@@ -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;