summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2003-01-09 01:23:55 +0000
committerBruce Momjian2003-01-09 01:23:55 +0000
commit06ffa8915eed9a509f07e86f271488f2fd4833cd (patch)
tree88c1b5ac603bb498c5ae9a528a375d62d8369c3c
parent3fc38b2ff7d568b00801b47ac76e0a74b24e6fb1 (diff)
Remove bit.c/h routines. Not used anymore.
-rw-r--r--src/backend/lib/Makefile2
-rw-r--r--src/backend/lib/bit.c41
-rw-r--r--src/include/utils/bit.h38
3 files changed, 1 insertions, 80 deletions
diff --git a/src/backend/lib/Makefile b/src/backend/lib/Makefile
index 721311994d..d6590b3a92 100644
--- a/src/backend/lib/Makefile
+++ b/src/backend/lib/Makefile
@@ -12,7 +12,7 @@ subdir = src/backend/lib
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global
-OBJS = bit.o dllist.o lispsort.o stringinfo.o
+OBJS = dllist.o lispsort.o stringinfo.o
all: SUBSYS.o
diff --git a/src/backend/lib/bit.c b/src/backend/lib/bit.c
deleted file mode 100644
index 8d3027f0e7..0000000000
--- a/src/backend/lib/bit.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/*-------------------------------------------------------------------------
- *
- * bit.c
- * Standard bit array code.
- *
- * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
- * Portions Copyright (c) 1994, Regents of the University of California
- *
- *
- * IDENTIFICATION
- * $Header$
- *
- *-------------------------------------------------------------------------
- */
-
-#include "postgres.h"
-
-#include "utils/bit.h"
-
-
-void
-BitArraySetBit(BitArray bitArray, BitIndex bitIndex)
-{
- bitArray[bitIndex / BITS_PER_BYTE] |=
- (1 << (BITS_PER_BYTE - 1 - (bitIndex % BITS_PER_BYTE)));
-}
-
-void
-BitArrayClearBit(BitArray bitArray, BitIndex bitIndex)
-{
- bitArray[bitIndex / BITS_PER_BYTE] &=
- ~(1 << (BITS_PER_BYTE - 1 - (bitIndex % BITS_PER_BYTE)));
-}
-
-bool
-BitArrayBitIsSet(BitArray bitArray, BitIndex bitIndex)
-{
- return ((bitArray[bitIndex / BITS_PER_BYTE] &
- (1 << (BITS_PER_BYTE - 1 - (bitIndex % BITS_PER_BYTE)))
- ) != 0);
-}
diff --git a/src/include/utils/bit.h b/src/include/utils/bit.h
deleted file mode 100644
index 7058773599..0000000000
--- a/src/include/utils/bit.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*-------------------------------------------------------------------------
- *
- * bit.h
- * Standard bit array definitions.
- *
- *
- * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
- * Portions Copyright (c) 1994, Regents of the University of California
- *
- * $Id$
- *
- *-------------------------------------------------------------------------
- */
-#ifndef BIT_H
-#define BIT_H
-
-typedef bits8 *BitArray;
-typedef uint32 BitIndex;
-
-/*
- * BitArraySetBit
- * Sets (to 1) the value of a bit in a bit array.
- */
-extern void BitArraySetBit(BitArray bitArray, BitIndex bitIndex);
-
-/*
- * BitArrayClearBit
- * Clears (to 0) the value of a bit in a bit array.
- */
-extern void BitArrayClearBit(BitArray bitArray, BitIndex bitIndex);
-
-/*
- * BitArrayBitIsSet
- * True iff the bit is set (1) in a bit array.
- */
-extern bool BitArrayBitIsSet(BitArray bitArray, BitIndex bitIndex);
-
-#endif /* BIT_H */