Remove duplicate resize.Crop

`resize.Crop` actually hasn't been moved to `crop.Crop` (as the removed
class claimed). In fact, what used to be called `resize.Crop` is now
`resize.Fill`. The confusion is understandable, since it's what
motivated the change in the first place!
This commit is contained in:
Matthew Tretter 2012-02-11 14:11:07 -05:00
parent 6dd0d2272f
commit 1ffc8ca81e

View file

@ -1,5 +1,5 @@
from imagekit.lib import Image
from .crop import Crop as _Crop, SmartCrop as _SmartCrop
from .crop import SmartCrop as _SmartCrop
import warnings
@ -128,13 +128,6 @@ class Fit(object):
return img
class Crop(_Crop):
def __init__(self, *args, **kwargs):
warnings.warn('The Crop processor has been moved to'
' `imagekit.processors.crop.Crop`, where it belongs.',
DeprecationWarning)
super(SmartCrop, self).__init__(*args, **kwargs)
class SmartCrop(_SmartCrop):
def __init__(self, *args, **kwargs):
warnings.warn('The SmartCrop processor has been moved to'