(id int64)
| 40 | } |
| 41 | |
| 42 | func (this *IdKeyMap) DeleteId(id int64) { |
| 43 | key, ok := this.idKeys[id] |
| 44 | if ok { |
| 45 | delete(this.keyIds, key) |
| 46 | } |
| 47 | delete(this.idKeys, id) |
| 48 | } |
| 49 | |
| 50 | func (this *IdKeyMap) DeleteKey(key string) { |
| 51 | id, ok := this.keyIds[key] |
no outgoing calls