Skip to content
Snippets Groups Projects
Commit 2a22750c authored by Tom Lane's avatar Tom Lane
Browse files

Remove typeTypeFlag(), which was not only unused but entirely redundant

with typeTypType().
parent 238dc463
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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) ...@@ -313,16 +313,6 @@ typeTypeName(Type t)
return pstrdup(NameStr(typ->typname)); 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 Oid
typeTypeRelid(Type typ) typeTypeRelid(Type typ)
{ {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * 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); ...@@ -33,7 +33,6 @@ extern int16 typeLen(Type t);
extern bool typeByVal(Type t); extern bool typeByVal(Type t);
extern char typeTypType(Type t); extern char typeTypType(Type t);
extern char *typeTypeName(Type t); extern char *typeTypeName(Type t);
extern char typeTypeFlag(Type t);
extern Oid typeTypeRelid(Type typ); extern Oid typeTypeRelid(Type typ);
extern Datum stringTypeDatum(Type tp, char *string, int32 atttypmod); extern Datum stringTypeDatum(Type tp, char *string, int32 atttypmod);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment