aboutsummaryrefslogtreecommitdiff
path: root/stmutil
diff options
context:
space:
mode:
authorucwong <ucwong@126.com>2022-10-28 11:23:13 +0800
committerGitHub <noreply@github.com>2022-10-28 14:23:13 +1100
commit47dd0d0a98b6efbf5d11ccda00712c9d5d0bcdd0 (patch)
tree8f6bd3a7059cdb38981e2d7fd12ce61abdef920f /stmutil
parentAdd go test CI action (diff)
downloadstm-47dd0d0a98b6efbf5d11ccda00712c9d5d0bcdd0.tar.gz
stm-47dd0d0a98b6efbf5d11ccda00712c9d5d0bcdd0.tar.xz
Revert "missing Get func added (#6)" (#8)
This reverts commit f0e9444c8b25fbe9e0c6f040b8a7493aa1f2501c.
Diffstat (limited to 'stmutil')
-rw-r--r--stmutil/containers.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/stmutil/containers.go b/stmutil/containers.go
index 2ce05e4..c7a4a49 100644
--- a/stmutil/containers.go
+++ b/stmutil/containers.go
@@ -88,10 +88,6 @@ func (m Map) Set(key, value any) Mappish {
return m
}
-func (m Map) Get(key any) (any, bool) {
- return m.Map.Get(key)
-}
-
func (sm Map) Range(f func(key, value any) bool) {
iter := sm.Map.Iterator()
for !iter.Done() {
@@ -116,10 +112,6 @@ func (sm SortedMap) Set(key, value any) Mappish {
return sm
}
-func (sm SortedMap) Get(key any) (any, bool) {
- return sm.SortedMap.Get(key)
-}
-
func (sm SortedMap) Delete(key any) Mappish {
sm.SortedMap = sm.SortedMap.Delete(key)
return sm