From adae794233e168aa4046b560c43db6b48725cc08 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 24 Aug 2010 06:40:28 +0000 Subject: py/rna remove functions now all work in a similar way. - some remove() functions took an int argument rather then the item to remove. - disallow None argument. - raise an error if the item isnt in the collection. --- source/blender/blenkernel/intern/constraint.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'source/blender/blenkernel/intern/constraint.c') diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index b415484c1c1..57e5630da19 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -3987,17 +3987,6 @@ int remove_constraint (ListBase *list, bConstraint *con) return 0; } -/* Remove the nth constraint from the given constraint stack */ -int remove_constraint_index (ListBase *list, int index) -{ - bConstraint *con= BLI_findlink(list, index); - - if (con) - return remove_constraint(list, con); - else - return 0; -} - /* Remove all the constraints of the specified type from the given constraint stack */ void remove_constraints_type (ListBase *list, short type, short last_only) { -- cgit v1.2.3