about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorAndrew Poelstra <apoelstra@wpsoftware.net>2014-06-30 07:25:58 -0700
committerAndrew Poelstra <apoelstra@wpsoftware.net>2014-07-02 12:36:02 -0700
commitda0d4be378d289e9e90a48deec674d42205ae4c9 (patch)
tree628be29241bcda5c23965df212063b8e8bc5da21 /src/rustllvm/ExecutionEngineWrapper.cpp
parent7a7ae993ce694bf75a11632b394916e055a4d8ec (diff)
downloadrust-da0d4be378d289e9e90a48deec674d42205ae4c9.tar.gz
rust-da0d4be378d289e9e90a48deec674d42205ae4c9.zip
collections::bitv: remove some ancient interfaces
Removes the following methods from `Bitv`:

  - `to_vec`: translates a `Bitv` into a bulky `Vec<uint>` of 0's and 1's
    replace with:  `bitv.iter().map(|b| if b {1} else {0}).collect()`

  - `to_bools`: translates a `Bitv` into a `Vec<bool>`
    replace with: `bitv.iter().collect()`

  - `ones`: internal iterator over all 1 bits in a `Bitv`
    replace with: `BitvSet::from_bitv(bitv).iter().advance(fn)`

These methods had specific functionality which can be replicated more
generally by the modern iterator system. (Also `to_vec` was not even
unit tested!)
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions