mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-11 00:32:27 +03:00
Merge pull request #3070 from jdufresne/unused
Remove unused Python class, Path
This commit is contained in:
commit
5869c28346
|
@ -17,44 +17,4 @@
|
||||||
from . import Image
|
from . import Image
|
||||||
|
|
||||||
|
|
||||||
# the Python class below is overridden by the C implementation.
|
|
||||||
|
|
||||||
|
|
||||||
class Path(object):
|
|
||||||
|
|
||||||
def __init__(self, xy):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def compact(self, distance=2):
|
|
||||||
"""
|
|
||||||
Compacts the path, by removing points that are close to each other.
|
|
||||||
This method modifies the path in place.
|
|
||||||
"""
|
|
||||||
pass
|
|
||||||
|
|
||||||
def getbbox(self):
|
|
||||||
"""Gets the bounding box."""
|
|
||||||
pass
|
|
||||||
|
|
||||||
def map(self, function):
|
|
||||||
"""Maps the path through a function."""
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tolist(self, flat=0):
|
|
||||||
"""
|
|
||||||
Converts the path to Python list.
|
|
||||||
#
|
|
||||||
@param flat By default, this function returns a list of 2-tuples
|
|
||||||
[(x, y), ...]. If this argument is true, it returns a flat list
|
|
||||||
[x, y, ...] instead.
|
|
||||||
@return A list of coordinates.
|
|
||||||
"""
|
|
||||||
pass
|
|
||||||
|
|
||||||
def transform(self, matrix):
|
|
||||||
"""Transforms the path."""
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
# override with C implementation
|
|
||||||
Path = Image.core.path
|
Path = Image.core.path
|
||||||
|
|
Loading…
Reference in New Issue
Block a user