From dcf399b9a0021a129ed9e1d38c5c7e589f8cacba Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Thu, 2 Apr 2015 22:49:15 +0200 Subject: [PATCH] pcd: minor cleanup; remove draft method It's not supported, and the implementation does nothing. --- PIL/PcdImagePlugin.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/PIL/PcdImagePlugin.py b/PIL/PcdImagePlugin.py index 5ce7aa48c..06db5d628 100644 --- a/PIL/PcdImagePlugin.py +++ b/PIL/PcdImagePlugin.py @@ -52,25 +52,6 @@ class PcdImageFile(ImageFile.ImageFile): self.size = 768, 512 # FIXME: not correct for rotated images! self.tile = [("pcd", (0, 0)+self.size, 96*2048, None)] - def draft(self, mode, size): - - if len(self.tile) != 1: - return - - d, e, o, a = self.tile[0] - - if size: - scale = max(self.size[0] / size[0], self.size[1] / size[1]) - for s, o in [(4, 0*2048), (2, 0*2048), (1, 96*2048)]: - if scale >= s: - break - # e = e[0], e[1], (e[2]-e[0]+s-1)/s+e[0], (e[3]-e[1]+s-1)/s+e[1] - # self.size = ((self.size[0]+s-1)/s, (self.size[1]+s-1)/s) - - self.tile = [(d, e, o, a)] - - return self - # # registry