perf: 优化代码结构,去除无用代码,去除重复代码

This commit is contained in:
kercylan98
2023-07-11 19:35:08 +08:00
parent a23e48b087
commit 47b8a333eb
12 changed files with 49 additions and 58 deletions

View File

@@ -48,10 +48,6 @@ func (slf *Map[Key, Value]) GetExist(key Key) (Value, bool) {
return value, exist
}
func (slf *Map[Key, Value]) Length() int {
return len(slf.data)
}
func (slf *Map[Key, Value]) Delete(key Key) {
delete(slf.data, key)
}