perf: 优化代码结构,去除无用代码,去除重复代码
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user