Remove removes the fact from the backing map.
(a ast.Atom)
| 794 | |
| 795 | // Remove removes the fact from the backing map. |
| 796 | func (s *MultiIndexedArrayInMemoryStore) Remove(a ast.Atom) bool { |
| 797 | removed := s.removeAtom(a) |
| 798 | if removed { |
| 799 | s.count-- |
| 800 | } |
| 801 | return removed |
| 802 | } |
| 803 | |
| 804 | func (s *MultiIndexedArrayInMemoryStore) addAtom(a ast.Atom) bool { |
| 805 | if a.Predicate.Arity == 0 { |
nothing calls this directly
no test coverage detected