aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2003-01-09 01:23:55 +0000
committerBruce Momjian <bruce@momjian.us>2003-01-09 01:23:55 +0000
commit0481f3f461553830c07f0f3845bade67e0639e77 (patch)
tree1e5446e004ff016ab7713281ab80b79988d02f44 /src
parentfb715e05f54b117572d9298c3869629a12d6f7b7 (diff)
downloadpostgresql-0481f3f461553830c07f0f3845bade67e0639e77.tar.gz
postgresql-0481f3f461553830c07f0f3845bade67e0639e77.zip
Remove bit.c/h routines. Not used anymore.
Diffstat (limited to 'src')
-rw-r--r--src/backend/lib/Makefile4
-rw-r--r--src/backend/lib/bit.c41
-rw-r--r--src/include/utils/bit.h38
3 files changed, 2 insertions, 81 deletions
diff --git a/src/backend/lib/Makefile b/src/backend/lib/Makefile
index 58e47f67144..ac57f197ba2 100644
--- a/src/backend/lib/Makefile
+++ b/src/backend/lib/Makefile
@@ -4,7 +4,7 @@
# Makefile for lib (miscellaneous stuff)
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/backend/lib/Makefile,v 1.16 2001/10/05 17:28:12 tgl Exp $
+# $Header: /cvsroot/pgsql/src/backend/lib/Makefile,v 1.17 2003/01/09 01:23:55 momjian Exp $
#
#-------------------------------------------------------------------------
@@ -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 fb060d61fd7..00000000000
--- 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: /cvsroot/pgsql/src/backend/lib/Attic/bit.c,v 1.15 2002/06/20 20:29:28 momjian Exp $
- *
- *-------------------------------------------------------------------------
- */
-
-#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 567d7d54023..00000000000
--- 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: bit.h,v 1.13 2002/06/20 20:29:52 momjian Exp $
- *
- *-------------------------------------------------------------------------
- */
-#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 */