| Index: webrtc/p2p/base/candidate.h
|
| diff --git a/webrtc/p2p/base/candidate.h b/webrtc/p2p/base/candidate.h
|
| index c2b889541e72165461c9a2f4055dd14d9b73651b..76ac5c3b1a7090c88f17b1ccceb7fad27213796c 100644
|
| --- a/webrtc/p2p/base/candidate.h
|
| +++ b/webrtc/p2p/base/candidate.h
|
| @@ -78,27 +78,6 @@ class Candidate {
|
| uint32 priority() const { return priority_; }
|
| void set_priority(const uint32 priority) { priority_ = priority; }
|
|
|
| -// void set_type_preference(uint32 type_preference) {
|
| -// priority_ = GetPriority(type_preference);
|
| -// }
|
| -
|
| - // Maps old preference (which was 0.0-1.0) to match priority (which
|
| - // is 0-2^32-1) to to match RFC 5245, section 4.1.2.1. Also see
|
| - // https://docs.google.com/a/google.com/document/d/
|
| - // 1iNQDiwDKMh0NQOrCqbj3DKKRT0Dn5_5UJYhmZO-t7Uc/edit
|
| - float preference() const {
|
| - // The preference value is clamped to two decimal precision.
|
| - return static_cast<float>(((priority_ >> 24) * 100 / 127) / 100.0);
|
| - }
|
| -
|
| - void set_preference(float preference) {
|
| - // Limiting priority to UINT_MAX when value exceeds uint32 max.
|
| - // This can happen for e.g. when preference = 3.
|
| - uint64 prio_val = static_cast<uint64>(preference * 127) << 24;
|
| - priority_ =
|
| - static_cast<uint32>(std::min(prio_val, static_cast<uint64>(UINT_MAX)));
|
| - }
|
| -
|
| const std::string & username() const { return username_; }
|
| void set_username(const std::string & username) { username_ = username; }
|
|
|
|
|