(key string)
| 684 | } |
| 685 | |
| 686 | func (c *candidateBase) RemoveExtension(key string) (ok bool) { |
| 687 | if key == "tcptype" { |
| 688 | c.tcpType = TCPTypeUnspecified |
| 689 | ok = true |
| 690 | } |
| 691 | |
| 692 | for i := range c.extensions { |
| 693 | if c.extensions[i].Key == key { |
| 694 | c.extensions = append(c.extensions[:i], c.extensions[i+1:]...) |
| 695 | ok = true |
| 696 | |
| 697 | break |
| 698 | } |
| 699 | } |
| 700 | |
| 701 | return ok |
| 702 | } |
| 703 | |
| 704 | // marshalExtensions returns the string representation of the candidate extensions. |
| 705 | func (c *candidateBase) marshalExtensions() string { |
nothing calls this directly
no outgoing calls
no test coverage detected