diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-12-18 21:05:54 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-29 00:09:58 +0200 |
| commit | 4673b12dcf6340862f9f4f72fc6dca8553130b55 (patch) | |
| tree | 36f2cbe8841acb05efbfb2c6b95e0a7289819342 /src/lib/image.cc | |
| parent | 08b44e380c8be3a8cb2dacbd94049f09942dabc1 (diff) | |
Remove unnecessary method.
Diffstat (limited to 'src/lib/image.cc')
| -rw-r--r-- | src/lib/image.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/lib/image.cc b/src/lib/image.cc index 4f5b11c90..861367637 100644 --- a/src/lib/image.cc +++ b/src/lib/image.cc @@ -1418,16 +1418,9 @@ png_flush (png_structp) static void -png_error_fn (png_structp png_ptr, char const * message) +png_error_fn (png_structp, char const * message) { - reinterpret_cast<Image*>(png_get_error_ptr(png_ptr))->png_error (message); -} - - -void -Image::png_error (char const * message) -{ - throw EncodeError (String::compose ("Error during PNG write: %1", message)); + throw EncodeError (String::compose("Error during PNG write: %1", message)); } |
