--
-- acs_activity__object_unmap/2
--
create or replace function acs_activity__object_unmap(
  integer,
  integer
) returns int4 as $$

declare
       object_unmap__activity_id	alias for $1; 
       object_unmap__object_id		alias for $2;
begin

       delete from acs_activity_object_map
       where  activity_id = object_unmap__activity_id
       and    object_id   = object_unmap__object_id;

       return 0;

end;$$ language plpgsql;