Skip to content

Commit 739c570

Browse files
committed
RF - remove deprecated save class method
1 parent f2a0467 commit 739c570

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

nibabel/spatialimages.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -506,14 +506,6 @@ def make_file_map(klass, mapping=None):
506506
def load(klass, filename):
507507
return klass.from_filename(filename)
508508

509-
@classmethod
510-
def save(klass, img, filename):
511-
warnings.warn('``save`` class method is deprecated\n'
512-
'You probably want the ``to_filename`` instance '
513-
'method, or the module-level ``save`` function',
514-
DeprecationWarning, stacklevel=2)
515-
klass.instance_to_filename(img, filename)
516-
517509
@classmethod
518510
def instance_to_filename(klass, img, filename):
519511
''' Save `img` in our own format, to name implied by `filename`

0 commit comments

Comments
 (0)