Skip to content
Browse files

Remove unused code.

Entities stored in @created_instances have all been through assertion. There
is no need to check if they implement retract.
  • Loading branch information...
1 parent 7150045 commit 66f4a50f170289c26c2ea6e06ad834536c337e7d @kouno committed Aug 16, 2012
Showing with 0 additions and 3 deletions.
  1. +0 −3 lib/activefacts/api/entity.rb
View
3 lib/activefacts/api/entity.rb
@@ -288,9 +288,6 @@ def assert_instance(constellation, args) #:nodoc:
rescue DuplicateIdentifyingValueException
@created_instances.each do |role, v|
- if !v.respond_to?(:retract)
- v = constellation.send(role.object_type.basename.to_sym)[[v]]
- end
v.retract if v
end
@created_instances = []

0 comments on commit 66f4a50

Please sign in to comment.
Something went wrong with that request. Please try again.