map: remove unused `get2()` and `get3()`

pull/5528/head
yuyi 2020-06-27 19:58:07 +08:00 committed by GitHub
parent 02b846aa72
commit 58763ff299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 16 deletions

View File

@ -373,10 +373,6 @@ fn (mut m map) get_and_set(key string, zero voidptr) voidptr {
m.set(key, zero) m.set(key, zero)
} }
} }
// Delete this (was used for bootstrap)
fn (mut m map) get2(key string, zero voidptr) voidptr {
return m.get_and_set(key, zero)
}
// If `key` matches the key of an element in the container, // If `key` matches the key of an element in the container,
// the method returns a reference to its mapped value. // the method returns a reference to its mapped value.
@ -396,10 +392,6 @@ fn (m map) get(key string, zero voidptr) voidptr {
} }
return zero return zero
} }
// Delete this (was used for bootstrap)
fn (m map) get3(key string, zero voidptr) voidptr {
return m.get(key, zero)
}
// Checks whether a particular key exists in the map. // Checks whether a particular key exists in the map.
fn (m map) exists(key string) bool { fn (m map) exists(key string) bool {