diff options
author | Keith Bostic <keith@wiredtiger.com> | 2012-03-28 11:26:06 +0000 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2012-03-28 11:26:06 +0000 |
commit | 6a7972d8cad24dd6da99b2103412243b990aaf6c (patch) | |
tree | 93156b17350b4e63d8f9d54d6031f4fd5faac026 | |
parent | 3c8f54583aa2b6af4fcaf31a33214277f933e16a (diff) | |
download | mongo-6a7972d8cad24dd6da99b2103412243b990aaf6c.tar.gz |
We no longer use __wt_buf_swap(), remove it (it's trivial to replace
if it comes back).
-rw-r--r-- | src/include/extern.h | 1 | ||||
-rw-r--r-- | src/support/scratch.c | 14 |
2 files changed, 0 insertions, 15 deletions
diff --git a/src/include/extern.h b/src/include/extern.h index 7f9e633a702..e5d53b95ee3 100644 --- a/src/include/extern.h +++ b/src/include/extern.h @@ -881,7 +881,6 @@ extern int __wt_buf_set_printable( WT_SESSION_IMPL *session, extern void *__wt_buf_steal(WT_SESSION_IMPL *session, WT_ITEM *buf, uint32_t *sizep); -extern void __wt_buf_swap(WT_ITEM *a, WT_ITEM *b); extern void __wt_buf_free(WT_SESSION_IMPL *session, WT_ITEM *buf); extern int __wt_buf_fmt(WT_SESSION_IMPL *session, WT_ITEM *buf, diff --git a/src/support/scratch.c b/src/support/scratch.c index cd4cbb0cca6..03e3d3a8b78 100644 --- a/src/support/scratch.c +++ b/src/support/scratch.c @@ -166,20 +166,6 @@ __wt_buf_steal(WT_SESSION_IMPL *session, WT_ITEM *buf, uint32_t *sizep) } /* - * __wt_buf_swap -- - * Swap a pair of buffers. - */ -void -__wt_buf_swap(WT_ITEM *a, WT_ITEM *b) -{ - WT_ITEM tmp; - - tmp = *a; - *a = *b; - *b = tmp; -} - -/* * __wt_buf_free -- * Free a buffer. */ |