mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
map: remove unused get2()
and get3()
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user