Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -85,20 +85,6 @@ func (aee *ActiveEndpointsError) Error() string {
|
| 85 | 85 |
// Forbidden denotes the type of this error |
| 86 | 86 |
func (aee *ActiveEndpointsError) Forbidden() {}
|
| 87 | 87 |
|
| 88 |
-// UnknownEndpointError is returned when libnetwork could not find in its database |
|
| 89 |
-// an endpoint with the same name and id. |
|
| 90 |
-type UnknownEndpointError struct {
|
|
| 91 |
- name string |
|
| 92 |
- id string |
|
| 93 |
-} |
|
| 94 |
- |
|
| 95 |
-func (uee *UnknownEndpointError) Error() string {
|
|
| 96 |
- return fmt.Sprintf("unknown endpoint %s id %s", uee.name, uee.id)
|
|
| 97 |
-} |
|
| 98 |
- |
|
| 99 |
-// NotFound denotes the type of this error |
|
| 100 |
-func (uee *UnknownEndpointError) NotFound() {}
|
|
| 101 |
- |
|
| 102 | 88 |
// ActiveContainerError is returned when an endpoint is deleted which has active |
| 103 | 89 |
// containers attached to it. |
| 104 | 90 |
type ActiveContainerError struct {
|
| ... | ... |
@@ -25,7 +25,7 @@ func TestErrorInterfaces(t *testing.T) {
|
| 25 | 25 |
} |
| 26 | 26 |
} |
| 27 | 27 |
|
| 28 |
- notFoundErrorList := []error{&UnknownNetworkError{}, &UnknownEndpointError{}, ErrNoSuchNetwork(""), ErrNoSuchEndpoint("")}
|
|
| 28 |
+ notFoundErrorList := []error{&UnknownNetworkError{}, ErrNoSuchNetwork(""), ErrNoSuchEndpoint("")}
|
|
| 29 | 29 |
for _, err := range notFoundErrorList {
|
| 30 | 30 |
switch u := err.(type) {
|
| 31 | 31 |
case types.NotFoundError: |