Commit e2ed2b18 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 9a8c5111
......@@ -27,7 +27,11 @@ func (s Set) Add(v VALUE) {
s[v] = struct{}{}
}
// XXX + Del(v) ?
// Del removes v from the set.
// it is noop if v was not in the set.
func (s Set) Del(v VALUE) {
delete(s, v)
}
// Has checks whether the set contains v.
func (s Set) Has(v VALUE) bool {
......
......@@ -29,7 +29,11 @@ func (s SetBigFile) Add(v *BigFile) {
s[v] = struct{}{}
}
// XXX + Del(v) ?
// Del removes v from the set.
// it is noop if v was not in the set.
func (s SetBigFile) Del(v *BigFile) {
delete(s, v)
}
// Has checks whether the set contains v.
func (s SetBigFile) Has(v *BigFile) bool {
......
......@@ -29,7 +29,11 @@ func (s SetI64) Add(v int64) {
s[v] = struct{}{}
}
// XXX + Del(v) ?
// Del removes v from the set.
// it is noop if v was not in the set.
func (s SetI64) Del(v int64) {
delete(s, v)
}
// Has checks whether the set contains v.
func (s SetI64) Has(v int64) bool {
......
......@@ -29,7 +29,11 @@ func (s SetTree) Add(v *Tree) {
s[v] = struct{}{}
}
// XXX + Del(v) ?
// Del removes v from the set.
// it is noop if v was not in the set.
func (s SetTree) Del(v *Tree) {
delete(s, v)
}
// Has checks whether the set contains v.
func (s SetTree) Has(v *Tree) bool {
......
// Code generated by gen-δtail I64 int64; DO NOT EDIT.
// (from lab.nexedi.com/kirr/neo/go/zodb @ v1.9-2332-ga6a767c9)
// (from lab.nexedi.com/kirr/neo/go/zodb @ v1.9-2339-gc2d001e1)
// Copyright (C) 2018-2019 Nexedi SA and Contributors.
// Copyright (C) 2018-2020 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment