Removed deprecated _mode_deprecations

This commit is contained in:
Egor Panfilov
2016-06-19 00:25:52 +03:00
parent c3b8f485d3
commit e02ccb6817
5 changed files with 3 additions and 23 deletions
-11
View File
@@ -167,17 +167,6 @@ def assert_nD(array, ndim, arg_name='image'):
raise ValueError(msg % (arg_name, '-or-'.join([str(n) for n in ndim])))
def _mode_deprecations(mode):
"""Used to update deprecated mode names in
`skimage._shared.interpolation.pyx`."""
if mode.lower() == 'nearest':
warn(skimage_deprecation(
"Mode 'nearest' has been renamed to 'edge'. Mode 'nearest' will be "
"removed in a future release."))
mode = 'edge'
return mode
def copy_func(f, name=None):
"""Create a copy of a function.