| 133 | } |
| 134 | |
| 135 | RoundRobinLoadBalancer* RoundRobinLoadBalancer::New( |
| 136 | const butil::StringPiece& params) const { |
| 137 | RoundRobinLoadBalancer* lb = new (std::nothrow) RoundRobinLoadBalancer; |
| 138 | if (lb && !lb->SetParameters(params)) { |
| 139 | delete lb; |
| 140 | lb = NULL; |
| 141 | } |
| 142 | return lb; |
| 143 | } |
| 144 | |
| 145 | void RoundRobinLoadBalancer::Destroy() { |
| 146 | delete this; |
nothing calls this directly
no test coverage detected