Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2a22750

Browse files
committed
Remove typeTypeFlag(), which was not only unused but entirely redundant
with typeTypType().
1 parent 238dc46 commit 2a22750

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/backend/parser/parse_type.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/parser/parse_type.c,v 1.67 2004/05/30 23:40:35 neilc Exp $
11+
* $PostgreSQL: pgsql/src/backend/parser/parse_type.c,v 1.68 2004/06/03 19:41:46 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -313,16 +313,6 @@ typeTypeName(Type t)
313313
return pstrdup(NameStr(typ->typname));
314314
}
315315

316-
/* given a type, return its typetype ('c' for 'c'atalog types) */
317-
char
318-
typeTypeFlag(Type t)
319-
{
320-
Form_pg_type typ;
321-
322-
typ = (Form_pg_type) GETSTRUCT(t);
323-
return typ->typtype;
324-
}
325-
326316
Oid
327317
typeTypeRelid(Type typ)
328318
{

src/include/parser/parse_type.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/include/parser/parse_type.h,v 1.26 2003/11/29 22:41:09 pgsql Exp $
10+
* $PostgreSQL: pgsql/src/include/parser/parse_type.h,v 1.27 2004/06/03 19:41:46 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -33,7 +33,6 @@ extern int16 typeLen(Type t);
3333
extern bool typeByVal(Type t);
3434
extern char typeTypType(Type t);
3535
extern char *typeTypeName(Type t);
36-
extern char typeTypeFlag(Type t);
3736
extern Oid typeTypeRelid(Type typ);
3837
extern Datum stringTypeDatum(Type tp, char *string, int32 atttypmod);
3938

0 commit comments

Comments
 (0)