mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib: remove deprecated map{} usages as well as deprecated functions (#11035)
This commit is contained in:
@@ -338,22 +338,6 @@ pub fn (instance BitField) clone() BitField {
|
||||
return output
|
||||
}
|
||||
|
||||
// cmp compares two bit arrays bit by bit and returns 'true' if they are
|
||||
// identical by length and contents and 'false' otherwise.
|
||||
[deprecated: 'use a == b instead']
|
||||
[deprecated_after: '2021-06-29']
|
||||
pub fn (instance BitField) cmp(input BitField) bool {
|
||||
if instance.size != input.size {
|
||||
return false
|
||||
}
|
||||
for i in 0 .. zbitnslots(instance.size) {
|
||||
if instance.field[i] != input.field[i] {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
pub fn (a BitField) == (b BitField) bool {
|
||||
if a.size != b.size {
|
||||
return false
|
||||
|
Reference in New Issue
Block a user