From 2ebdf874eb874ccb2d30c96c171878f1ce607c17 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Thu, 25 Jun 2020 09:14:18 -0700 Subject: [PATCH] [utils] remove wrap_string.h (#5150) --- examples/platforms/k32w/src/settings_k32w.c | 2 +- src/core/utils/wrap_string.h | 54 --------------------- 2 files changed, 1 insertion(+), 55 deletions(-) delete mode 100644 src/core/utils/wrap_string.h diff --git a/examples/platforms/k32w/src/settings_k32w.c b/examples/platforms/k32w/src/settings_k32w.c index c28014937..f92dff9d1 100755 --- a/examples/platforms/k32w/src/settings_k32w.c +++ b/examples/platforms/k32w/src/settings_k32w.c @@ -37,6 +37,7 @@ #include #include #include +#include #include @@ -44,7 +45,6 @@ #include #include "utils/code_utils.h" -#include "utils/wrap_string.h" #include "openthread/platform/flash.h" diff --git a/src/core/utils/wrap_string.h b/src/core/utils/wrap_string.h deleted file mode 100644 index 915b61822..000000000 --- a/src/core/utils/wrap_string.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2017, The OpenThread Authors. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the copyright holder nor the - * names of its contributors may be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/** - * @file - * This file is a wrapper for the standard "string.h" file - * Some platforms provide all required functions, some do not. - * This solves the missing functions in #include - */ - -#if !defined(WRAP_STRING_H) -#define WRAP_STRING_H - -#include "openthread-core-config.h" - -/* system provided string.h */ -#include - -/* These are C functions */ -#if defined(__cplusplus) -#define WRAP_EXTERN_C extern "C" -#else -#define WRAP_EXTERN_C extern -#endif - -/* Prototypes for our missing function replacements */ - -#undef WRAP_EXTERN_C - -#endif // WRAP_STRING_H