Bug 868: Remove AD-SAL components which were deprecated in Lithium
[controller.git] / opendaylight / adsal / sal / api / src / main / java / org / opendaylight / controller / sal / utils / StatusCode.java
diff --git a/opendaylight/adsal/sal/api/src/main/java/org/opendaylight/controller/sal/utils/StatusCode.java b/opendaylight/adsal/sal/api/src/main/java/org/opendaylight/controller/sal/utils/StatusCode.java
deleted file mode 100644 (file)
index 81f0b76..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-
-package org.opendaylight.controller.sal.utils;
-
-/**
- * The enum which describes the generic error conditions.
- * Each enum value is associated with a minimal description string.
- *
- */
-@Deprecated
-public enum StatusCode {
-        SUCCESS("Success"),
-        CREATED("Created"),
-
-        BADREQUEST("Bad Request"),
-        UNAUTHORIZED("UnAuthorized"),
-        FORBIDDEN("Forbidden"),
-        NOTFOUND("Not Found"),
-        NOTALLOWED("Method Not Allowed"),
-        NOTACCEPTABLE("Request Not Acceptable"),
-        TIMEOUT("Request Timeout"),
-        CONFLICT("Resource Conflict"),
-        GONE("Resource Gone"),
-        UNSUPPORTED("Unsupported"),
-
-        INTERNALERROR("Internal Error"),
-        NOTIMPLEMENTED("Not Implemented"),
-        NOSERVICE("Service Not Available"),
-
-        UNDEFINED("Undefined Error");
-
-        private String description;
-        private StatusCode(String description) {
-                this.description = description;
-        }
-
-        /**
-         * Prints the description associated to the code value
-         */
-        @Override
-        public String toString() {
-                return description;
-        }
-
-    public int calculateConsistentHashCode() {
-        if (this.description != null) {
-            return this.description.hashCode();
-        } else {
-            return 0;
-        }
-    }
-}