Skip to content

Commit 3549566

Browse files
committed
removing _requires_warn (not used)
1 parent 40a0804 commit 3549566

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

nipype/interfaces/base/specs.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -119,20 +119,6 @@ def _xor_warn(self, obj, name, old, new):
119119
'which is already set') % (name, trait_name)
120120
raise IOError(msg)
121121

122-
def _requires_warn(self, obj, name, old, new):
123-
"""Part of the xor behavior
124-
"""
125-
if isdefined(new):
126-
trait_spec = self.traits()[name]
127-
msg = None
128-
for trait_name in trait_spec.requires:
129-
if not isdefined(getattr(self, trait_name)):
130-
if not msg:
131-
msg = 'Input %s requires inputs: %s' \
132-
% (name, ', '.join(trait_spec.requires))
133-
if msg: # only one requires warning at a time.
134-
warn(msg)
135-
136122
def _deprecated_warn(self, obj, name, old, new):
137123
"""Checks if a user assigns a value to a deprecated trait
138124
"""

0 commit comments

Comments
 (0)