Remove unused variable.
[dcpomatic.git] / src / lib / image.cc
index 9ae0fe6f8f888579aaa69dde0392e3a1f30191f3..2df7636af689a14e6a7e175ca677cd2bf8791972 100644 (file)
@@ -24,8 +24,6 @@
 #include <sstream>
 #include <iomanip>
 #include <iostream>
-#include <execinfo.h>
-#include <cxxabi.h>
 #include <sys/time.h>
 #include <boost/algorithm/string.hpp>
 #include <openjpeg.h>
@@ -41,10 +39,6 @@ extern "C" {
 #include "exceptions.h"
 #include "scaler.h"
 
-#ifdef DEBUG_HASH
-#include <mhash.h>
-#endif
-
 using namespace std;
 using namespace boost;
 
@@ -87,33 +81,6 @@ Image::components () const
        return 0;
 }
 
-#ifdef DEBUG_HASH
-/** Write a MD5 hash of the image's data to stdout.
- *  @param n Title to give the output.
- */
-void
-Image::hash (string n) const
-{
-       MHASH ht = mhash_init (MHASH_MD5);
-       if (ht == MHASH_FAILED) {
-               throw EncodeError ("could not create hash thread");
-       }
-       
-       for (int i = 0; i < components(); ++i) {
-               mhash (ht, data()[i], line_size()[i] * lines(i));
-       }
-       
-       uint8_t hash[16];
-       mhash_deinit (ht, hash);
-       
-       printf ("%s: ", n.c_str ());
-       for (int i = 0; i < int (mhash_get_block_size (MHASH_MD5)); ++i) {
-               printf ("%.2x", hash[i]);
-       }
-       printf ("\n");
-}
-#endif
-
 /** Scale this image to a given size and convert it to RGB.
  *  @param out_size Output image size in pixels.
  *  @param scaler Scaler to use.
@@ -127,7 +94,7 @@ Image::scale_and_convert_to_rgb (Size out_size, int padding, Scaler const * scal
        content_size.width -= (padding * 2);
 
        shared_ptr<RGBFrameImage> rgb (new RGBFrameImage (content_size));
-       
+
        struct SwsContext* scale_context = sws_getContext (
                size().width, size().height, pixel_format(),
                content_size.width, content_size.height, PIX_FMT_RGB24,