1
0
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:
Daniel Däschle
2021-08-04 11:44:41 +02:00
committed by GitHub
parent b870f7a6f1
commit 800c0e5092
142 changed files with 410 additions and 501 deletions

View File

@@ -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