| … | … | @@ -40,7 +40,16 @@ void DeleteLink::setAtomSpace(AtomSpace * as) |
| 40 | 40 | return; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | DeleteLink::execute(as, true); | |
| 43 | if (DELETE_RECURSIVE_LINK == _type) | |
| 44 | { | |
| 45 | for (const Handle& h : _outgoing) | |
| 46 | as->extract_atom(h, true); | |
| 47 | } | |
| 48 | else | |
| 49 | { | |
| 50 | for (const Handle& h : _outgoing) | |
| 51 | as->extract_atom(h, false); | |
| 52 | } | |
| 44 | 53 | |
| 45 | 54 | throw DeleteException(); |
| 46 | 55 | } |