From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Thu, 3 Jun 2004 19:41:46 +0000 (+0000)
Subject: Remove typeTypeFlag(), which was not only unused but entirely redundant
X-Git-Tag: REL8_0_0BETA1~443
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a22750c9693f24c4d179c6b1dedb1c4a7eadbd6;p=postgresql

Remove typeTypeFlag(), which was not only unused but entirely redundant
with typeTypType().
---

diff --git a/src/backend/parser/parse_type.c b/src/backend/parser/parse_type.c
index 3dc16225b7..be4877909f 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 7982532395..f0b7b31a56 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);