helper/jim-nvp: remove unused function Jim_nvpInit()
authorAntonio Borneo <borneo.antonio@gmail.com>
Sun, 25 Apr 2021 18:07:35 +0000 (20:07 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 1 May 2021 12:37:06 +0000 (13:37 +0100)
The files jim-nvp.[ch] were originally inside jimtcl, then in 2011
they were dropped by jimtcl and integrated in OpenOCD.
The initial purpose was to make them as an independent library,
thus the presence of an 'init' function. Being now part of OpenOCD
do not require the 'init' function anymore, that is still empty
and unused, plus its name is in violation of the coding style.

Drop the function Jim_nvpInit().

Change-Id: I429e10444c86a26dbdc22aa071315324dc5edc3e
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6187
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/helper/jim-nvp.c

index d13bdfba4caea1c4328efd510cf263a0214c068a..2caf18bce8a43a289480776e563d04951f309993 100644 (file)
@@ -333,9 +333,3 @@ const char *Jim_Debug_ArgvString(Jim_Interp *interp, int argc, Jim_Obj *const *a
 
        return Jim_String(debug_string_obj);
 }
-
-int Jim_nvpInit(Jim_Interp *interp)
-{
-       /* This is really a helper library, not an extension, but this is the easy way */
-       return JIM_OK;
-}