aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-06-03 19:41:46 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-06-03 19:41:46 +0000
commit2a22750c9693f24c4d179c6b1dedb1c4a7eadbd6 (patch)
treed9c8c00a83aeafcc8fc78ea14f1d64f258cc8c25 /src
parent238dc4634f20d3859520c11b2fab5692f01632f9 (diff)
downloadpostgresql-2a22750c9693f24c4d179c6b1dedb1c4a7eadbd6.tar.gz
postgresql-2a22750c9693f24c4d179c6b1dedb1c4a7eadbd6.zip
Remove typeTypeFlag(), which was not only unused but entirely redundant
with typeTypType().
Diffstat (limited to 'src')
-rw-r--r--src/backend/parser/parse_type.c12
-rw-r--r--src/include/parser/parse_type.h3
2 files changed, 2 insertions, 13 deletions
diff --git a/src/backend/parser/parse_type.c b/src/backend/parser/parse_type.c
index 3dc16225b7c..be4877909f7 100644
--- a/src/backend/parser/parse_type.c
+++ b/src/backend/parser/parse_type.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/parser/parse_type.c,v 1.67 2004/05/30 23:40:35 neilc Exp $
+ * $PostgreSQL: pgsql/src/backend/parser/parse_type.c,v 1.68 2004/06/03 19:41:46 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -313,16 +313,6 @@ typeTypeName(Type t)
return pstrdup(NameStr(typ->typname));
}
-/* given a type, return its typetype ('c' for 'c'atalog types) */
-char
-typeTypeFlag(Type t)
-{
- Form_pg_type typ;
-
- typ = (Form_pg_type) GETSTRUCT(t);
- return typ->typtype;
-}
-
Oid
typeTypeRelid(Type typ)
{
diff --git a/src/include/parser/parse_type.h b/src/include/parser/parse_type.h
index 79825323952..f0b7b31a568 100644
--- a/src/include/parser/parse_type.h
+++ b/src/include/parser/parse_type.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/parser/parse_type.h,v 1.26 2003/11/29 22:41:09 pgsql Exp $
+ * $PostgreSQL: pgsql/src/include/parser/parse_type.h,v 1.27 2004/06/03 19:41:46 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -33,7 +33,6 @@ extern int16 typeLen(Type t);
extern bool typeByVal(Type t);
extern char typeTypType(Type t);
extern char *typeTypeName(Type t);
-extern char typeTypeFlag(Type t);
extern Oid typeTypeRelid(Type typ);
extern Datum stringTypeDatum(Type tp, char *string, int32 atttypmod);