summaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2010-06-18 11:43:09 +0800
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-06-18 07:52:51 +0200
commitc3ee63be77476af770134b39d31758eb6a0ef69f (patch)
tree8f79c4332c906148dead2cf84bb8a4905e7b18dc /src/helper
parentcebd817cee515fda9d697c5c8d23992254805346 (diff)
downloadopenocd+libswd-c3ee63be77476af770134b39d31758eb6a0ef69f.tar.gz
openocd+libswd-c3ee63be77476af770134b39d31758eb6a0ef69f.tar.bz2
openocd+libswd-c3ee63be77476af770134b39d31758eb6a0ef69f.tar.xz
openocd+libswd-c3ee63be77476af770134b39d31758eb6a0ef69f.zip
helper/jim: review unused symbols
Remove unused functions: - Jim_IdentityHashFunction - StringAppendObj - JimReferencesHTDoubleHashFunction Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/jim.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/helper/jim.c b/src/helper/jim.c
index 91f1ea5d..7fdf52c5 100644
--- a/src/helper/jim.c
+++ b/src/helper/jim.c
@@ -656,12 +656,6 @@ static unsigned int Jim_IntHashFunction(unsigned int key)
return key;
}
-/* Identity hash function for integer keys */
-unsigned int Jim_IdentityHashFunction(unsigned int key)
-{
- return key;
-}
-
/* Generic hash function (we are using to multiply by 9 and add the byte
* as Tcl) */
static unsigned int Jim_GenHashFunction(const unsigned char *buf, int len)
@@ -2040,16 +2034,6 @@ static void StringAppendString(Jim_Obj *objPtr, const char *str, int len)
objPtr->length += len;
}
-/* Low-level wrapper to append an object. */
-void StringAppendObj(Jim_Obj *objPtr, Jim_Obj *appendObjPtr)
-{
- int len;
- const char *str;
-
- str = Jim_GetString(appendObjPtr, &len);
- StringAppendString(objPtr, str, len);
-}
-
/* Higher level API to append strings to objects. */
void Jim_AppendString(Jim_Interp *interp, Jim_Obj *objPtr, const char *str,
int len)
@@ -4029,14 +4013,6 @@ static unsigned int JimReferencesHTHashFunction(const void *key)
return Jim_IntHashFunction(intValue);
}
-unsigned int JimReferencesHTDoubleHashFunction(const void *key)
-{
- /* Only the least significant bits are used. */
- const jim_wide *widePtr = key;
- unsigned int intValue = (unsigned int) *widePtr;
- return intValue; /* identity function. */
-}
-
static const void *JimReferencesHTKeyDup(void *privdata, const void *key)
{
void *copy = Jim_Alloc(sizeof(jim_wide));