From 3fa3b48ae9b05f33308ca9f5bac9d40423f8224f Mon Sep 17 00:00:00 2001 From: homm Date: Thu, 2 Jun 2016 09:56:50 +0300 Subject: [PATCH] ImagingTransposeToNew not used anymore --- libImaging/Geometry.c | 42 ------------------------------------------ libImaging/Imaging.h | 1 - 2 files changed, 43 deletions(-) diff --git a/libImaging/Geometry.c b/libImaging/Geometry.c index 866861d28..c4fea5c54 100644 --- a/libImaging/Geometry.c +++ b/libImaging/Geometry.c @@ -1,30 +1,3 @@ -/* - * The Python Imaging Library - * $Id$ - * - * the imaging geometry methods - * - * history: - * 1995-06-15 fl Created - * 1996-04-15 fl Changed origin - * 1996-05-18 fl Fixed rotate90/270 for rectangular images - * 1996-05-27 fl Added general purpose transform - * 1996-11-22 fl Don't crash when resizing from outside source image - * 1997-08-09 fl Fixed rounding error in resize - * 1998-09-21 fl Incorporated transformation patches (from Zircon #2) - * 1998-09-22 fl Added bounding box to transform engines - * 1999-02-03 fl Fixed bicubic filtering for RGB images - * 1999-02-16 fl Added fixed-point version of affine transform - * 2001-03-28 fl Fixed transform(EXTENT) for xoffset < 0 - * 2003-03-10 fl Compiler tweaks - * 2004-09-19 fl Fixed bilinear/bicubic filtering of LA images - * - * Copyright (c) 1997-2003 by Secret Labs AB - * Copyright (c) 1995-1997 by Fredrik Lundh - * - * See the README file for information on usage and redistribution. - */ - #include "Imaging.h" /* For large images rotation is an inefficient operation in terms of CPU cache. @@ -183,21 +156,6 @@ ImagingTranspose(Imaging imOut, Imaging imIn) } -Imaging -ImagingTransposeToNew(Imaging imIn) -{ - Imaging imTemp = ImagingNew(imIn->mode, imIn->ysize, imIn->xsize); - if ( ! imTemp) - return NULL; - - if ( ! ImagingTranspose(imTemp, imIn)) { - ImagingDelete(imTemp); - return NULL; - } - return imTemp; -} - - Imaging ImagingRotate180(Imaging imOut, Imaging imIn) { diff --git a/libImaging/Imaging.h b/libImaging/Imaging.h index bbef0440d..42135e110 100644 --- a/libImaging/Imaging.h +++ b/libImaging/Imaging.h @@ -293,7 +293,6 @@ extern Imaging ImagingRotate180(Imaging imOut, Imaging imIn); extern Imaging ImagingRotate270(Imaging imOut, Imaging imIn); extern Imaging ImagingResample(Imaging imIn, int xsize, int ysize, int filter); extern Imaging ImagingTranspose(Imaging imOut, Imaging imIn); -extern Imaging ImagingTransposeToNew(Imaging imIn); extern Imaging ImagingTransformPerspective( Imaging imOut, Imaging imIn, int x0, int y0, int x1, int y1, double a[8], int filter, int fill);