@@ -1025,26 +1025,3 @@ def get_paths_extents(paths, transforms=[]):
10251025 raise ValueError ("No paths provided" )
10261026 return Bbox .from_extents (* _path .get_path_collection_extents (
10271027 Affine2D (), paths , transforms , [], Affine2D ()))
1028-
1029-
1030- def _define_deprecated_functions (ns ):
1031- from .cbook import deprecated
1032-
1033- # The C++ functions are not meant to be used directly.
1034- # Users should use the more pythonic wrappers in the Path
1035- # class instead.
1036- for func , alternative in [
1037- ('point_in_path' , 'path.Path.contains_point' ),
1038- ('get_path_extents' , 'path.Path.get_extents' ),
1039- ('point_in_path_collection' , 'collection.Collection.contains' ),
1040- ('path_in_path' , 'path.Path.contains_path' ),
1041- ('path_intersects_path' , 'path.Path.intersects_path' ),
1042- ('convert_path_to_polygons' , 'path.Path.to_polygons' ),
1043- ('cleanup_path' , 'path.Path.cleaned' ),
1044- ('points_in_path' , 'path.Path.contains_points' ),
1045- ('clip_path_to_rect' , 'path.Path.clip_to_bbox' )]:
1046- ns [func ] = deprecated (
1047- since = '1.3' , alternative = alternative )(getattr (_path , func ))
1048-
1049-
1050- _define_deprecated_functions (locals ())
0 commit comments