summaryrefslogtreecommitdiffstats
path: root/net/base
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-13 23:09:04 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-13 23:09:04 +0000
commitbaa3280f82301f2a93712f2ed69f9d524a154053 (patch)
tree778878efa1926bfec66006ab20750162ac41fa24 /net/base
parente038a5e5b0bc1d27a839b14fa7e4419267400dc4 (diff)
downloadchromium_src-baa3280f82301f2a93712f2ed69f9d524a154053.zip
chromium_src-baa3280f82301f2a93712f2ed69f9d524a154053.tar.gz
chromium_src-baa3280f82301f2a93712f2ed69f9d524a154053.tar.bz2
Delete unused functions in nss_memio.c.
/usr/local/google/chromium3/src/net/base/nss_memio.c:142: warning: 'memio_buffer_empty' defined but not used /usr/local/google/chromium3/src/net/base/nss_memio.c:148: warning: 'memio_buffer_full' defined but not used Review URL: http://codereview.chromium.org/67098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13626 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r--net/base/nss_memio.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/net/base/nss_memio.c b/net/base/nss_memio.c
index d92adf6..e680815 100644
--- a/net/base/nss_memio.c
+++ b/net/base/nss_memio.c
@@ -80,12 +80,6 @@ static int memio_buffer_unused(const struct memio_buffer *mb);
/* How many bytes can be written into the buffer without wrapping */
static int memio_buffer_unused_contiguous(const struct memio_buffer *mb);
-/* Is buffer completely empty? */
-static int memio_buffer_empty(const struct memio_buffer *mb);
-
-/* Is buffer completely full? */
-static int memio_buffer_full(const struct memio_buffer *mb);
-
/* Write n bytes into the buffer. Returns number of bytes written. */
static int memio_buffer_put(struct memio_buffer *mb, const char *buf, int n);
@@ -137,18 +131,6 @@ static int memio_buffer_unused_contiguous(const struct memio_buffer *mb)
return mb->bufsize - mb->tail - (mb->head == 0);
}
-/* Is buffer completely empty? */
-static int memio_buffer_empty(const struct memio_buffer *mb)
-{
- return mb->head == mb->tail;
-}
-
-/* Is buffer completely full? */
-static int memio_buffer_full(const struct memio_buffer *mb)
-{
- return memio_buffer_unused(mb) == 0;
-}
-
/* Write n bytes into the buffer. Returns number of bytes written. */
static int memio_buffer_put(struct memio_buffer *mb, const char *buf, int n)
{
@@ -485,8 +467,6 @@ int main()
memio_buffer_new(&mb, TEST_BUFLEN);
- CHECKEQ(memio_buffer_empty(&mb), TRUE);
- CHECKEQ(memio_buffer_full(&mb), FALSE);
CHECKEQ(memio_buffer_unused_contiguous(&mb), TEST_BUFLEN-1);
CHECKEQ(memio_buffer_unused(&mb), TEST_BUFLEN-1);
CHECKEQ(memio_buffer_used_contiguous(&mb), 0);
@@ -494,8 +474,6 @@ int main()
CHECKEQ(memio_buffer_put(&mb, "howdy", 5), 5);
- CHECKEQ(memio_buffer_empty(&mb), FALSE);
- CHECKEQ(memio_buffer_full(&mb), FALSE);
CHECKEQ(memio_buffer_unused_contiguous(&mb), TEST_BUFLEN-1-5);
CHECKEQ(memio_buffer_unused(&mb), TEST_BUFLEN-1-5);
CHECKEQ(memio_buffer_used_contiguous(&mb), 5);
@@ -503,8 +481,6 @@ int main()
CHECKEQ(memio_buffer_put(&mb, "!", 1), 1);
- CHECKEQ(memio_buffer_empty(&mb), FALSE);
- CHECKEQ(memio_buffer_full(&mb), TRUE);
CHECKEQ(memio_buffer_unused_contiguous(&mb), 0);
CHECKEQ(memio_buffer_unused(&mb), 0);
CHECKEQ(memio_buffer_used_contiguous(&mb), 6);
@@ -513,8 +489,6 @@ int main()
CHECKEQ(memio_buffer_get(&mb, buf, 6), 6);
CHECKEQ(memcmp(buf, "howdy!", 6), 0);
- CHECKEQ(memio_buffer_empty(&mb), TRUE);
- CHECKEQ(memio_buffer_full(&mb), FALSE);
CHECKEQ(memio_buffer_unused(&mb), TEST_BUFLEN-1);
CHECKEQ(memio_buffer_unused_contiguous(&mb), 1);
CHECKEQ(memio_buffer_used_contiguous(&mb), 0);
@@ -522,8 +496,6 @@ int main()
CHECKEQ(memio_buffer_put(&mb, "01234", 5), 5);
- CHECKEQ(memio_buffer_empty(&mb), FALSE);
- CHECKEQ(memio_buffer_full(&mb), FALSE);
CHECKEQ(memio_buffer_used(&mb), 5);
CHECKEQ(memio_buffer_used_contiguous(&mb), 1);
CHECKEQ(memio_buffer_unused_contiguous(&mb), TEST_BUFLEN-1-5);
@@ -531,8 +503,6 @@ int main()
CHECKEQ(memio_buffer_put(&mb, "5", 1), 1);
- CHECKEQ(memio_buffer_empty(&mb), FALSE);
- CHECKEQ(memio_buffer_full(&mb), TRUE);
CHECKEQ(memio_buffer_unused_contiguous(&mb), 0);
CHECKEQ(memio_buffer_unused(&mb), 0);
CHECKEQ(memio_buffer_used_contiguous(&mb), 1);