Remove unused code 82/317782/7
authorTomasz Swierczek <t.swierczek@samsung.com>
Tue, 17 Sep 2024 12:42:10 +0000 (14:42 +0200)
committerTomasz Swierczek <t.swierczek@samsung.com>
Mon, 23 Sep 2024 11:50:01 +0000 (13:50 +0200)
Change-Id: Ic843e8e8512837e1aed3d6d8ef1a6cc2e9249308

src/manager/common/openssl-error-handler.cpp

index c8244632ad56e7354d1235a6c75b86962395166a..82e30b564e34ad2495ce13b29457b61d7a1f77ef 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2017-2020 Samsung Electronics Co., Ltd. All rights reserved
+ *  Copyright (c) 2017 - 2024 Samsung Electronics Co., Ltd. All rights reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -43,21 +43,6 @@ namespace CKM {
 
 static const int GENERIC_REASON_MAX = 99;
 
-#define ERRORDESCRIBE(name) case name: return #name
-const char *ckm_debug_translate_error(int err)
-{
-       switch (err) {
-       ERRORDESCRIBE(CKM_API_SUCCESS);
-       ERRORDESCRIBE(CKM_API_ERROR_INPUT_PARAM);
-       ERRORDESCRIBE(CKM_API_ERROR_OUT_OF_MEMORY);
-       ERRORDESCRIBE(CKM_API_ERROR_SERVER_ERROR);
-       ERRORDESCRIBE(CKM_API_ERROR_AUTHENTICATION_FAILED);
-       ERRORDESCRIBE(CKM_API_ERROR_VERIFICATION_FAILED);
-       default: return "Error not defined";
-       }
-}
-#undef ERRORDESCRIBE
-
 void errorDump()
 {
        auto bio = uptr<BIO_free_all>(BIO_new(BIO_s_mem()));