Chromium Code Reviews| Index: net/tools/transport_security_state_generator/bit_writer.cc |
| diff --git a/net/tools/transport_security_state_generator/bit_writer.cc b/net/tools/transport_security_state_generator/bit_writer.cc |
| index b10316d241c5b394682d391b8f5cc9d1fee89fe0..82da76a65d43bf9cb0dcd5903fa3d3c2e131dc70 100644 |
| --- a/net/tools/transport_security_state_generator/bit_writer.cc |
| +++ b/net/tools/transport_security_state_generator/bit_writer.cc |
| @@ -33,21 +33,13 @@ void BitWriter::WriteBit(uint8_t bit) { |
| } |
| void BitWriter::Flush() { |
| + position_ += (8 - used_); |
|
Ryan Sleevi
2017/02/14 20:53:17
This seems like a non-trivial behaviour change.
I
martijnc
2017/02/15 22:07:58
This doesn't change the API contract, both the old
|
| bytes_.push_back(current_byte_); |
| used_ = 0; |
| current_byte_ = 0; |
| } |
| -uint8_t BitWriter::BitLength(uint32_t input) const { |
| - uint8_t number_of_bits = 0; |
| - while (input != 0) { |
| - number_of_bits++; |
| - input >>= 1; |
| - } |
| - return number_of_bits; |
| -} |
| - |
| } // namespace transport_security_state |
| } // namespace net |