Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit11ac1bf

Browse files
committed
More NOT_USEDs
1 parent36c9c96 commit11ac1bf

File tree

9 files changed

+34
-47
lines changed

9 files changed

+34
-47
lines changed

‎src/backend/access/nbtree/nbtinsert.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.16 1997/06/10 07:28:47 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.17 1997/08/20 14:53:15 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -35,9 +35,6 @@ static OffsetNumber _bt_pgaddtup(Relation rel, Buffer buf, int keysz, ScanKey it
3535
staticbool_bt_goesonpg(Relationrel,Bufferbuf,Sizekeysz,ScanKeyscankey,BTItemafteritem);
3636
staticvoid_bt_updateitem(Relationrel,Sizekeysz,Bufferbuf,BTItemoldItem,BTItemnewItem);
3737
staticbool_bt_isequal (TupleDescitupdesc,Pagepage,OffsetNumberoffnum,intkeysz,ScanKeyscankey);
38-
#if0
39-
staticInsertIndexResult_bt_shift (Relationrel,Bufferbuf,BTStackstack,intkeysz,ScanKeyscankey,BTItembtitem,BTItemhikey);
40-
#endif
4138

4239
/*
4340
* _bt_doinsert() -- Handle insertion of a single btitem in the tree.
@@ -1449,7 +1446,7 @@ _bt_isequal (TupleDesc itupdesc, Page page, OffsetNumber offnum,
14491446
return (true);
14501447
}
14511448

1452-
#if0
1449+
#ifdefNOT_USED
14531450
/*
14541451
* _bt_shift - insert btitem on the passed page after shifting page
14551452
* to the right in the tree.

‎src/backend/executor/execUtils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.11 1997/08/19 21:31:06 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.12 1997/08/20 14:53:20 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -467,7 +467,7 @@ ExecAssignScanTypeFromOuterPlan(Plan *node, CommonScanState *csstate)
467467
* to share common code.
468468
* ----------------
469469
*/
470-
#if0
470+
#ifdefNOT_USED
471471
void
472472
ExecSetTypeInfo(intindex,
473473
TupleDesctypeInfo,

‎src/backend/executor/nodeMaterial.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/executor/nodeMaterial.c,v 1.5 1996/11/08 00:45:58 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/executor/nodeMaterial.c,v 1.6 1997/08/20 14:53:24 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -336,7 +336,7 @@ ExecEndMaterial(Material *node)
336336
ExecClearTuple(matstate->csstate.css_ScanTupleSlot);
337337
}
338338

339-
#if0/* not used */
339+
#ifdefNOT_USED/* not used */
340340
/* ----------------------------------------------------------------
341341
*ExecMaterialMarkPos
342342
* ----------------------------------------------------------------

‎src/backend/optimizer/prep/prepqual.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepqual.c,v 1.2 1996/10/31 10:59:27 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepqual.c,v 1.3 1997/08/20 14:53:30 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -543,7 +543,7 @@ remove_ands(Expr *qual)
543543
* are referenced in the target list.
544544
*
545545
*/
546-
#if0
546+
#ifdefNOT_USED
547547
staticList*
548548
update_relations(List*tlist)
549549
{

‎src/backend/optimizer/util/internal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/Attic/internal.c,v 1.2 1996/10/31 10:59:39 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/Attic/internal.c,v 1.3 1997/08/20 14:53:37 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -31,7 +31,7 @@
3131
#include"nodes/primnodes.h"
3232
#include"utils/palloc.h"
3333

34-
#if0
34+
#ifdefNOT_USED
3535
/*****************************************************************************
3636
*
3737
*****************************************************************************/

‎src/backend/optimizer/util/tlist.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/tlist.c,v 1.3 1997/08/19 21:32:08 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/tlist.c,v 1.4 1997/08/20 14:53:47 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -532,7 +532,7 @@ get_expr(TargetEntry *tle)
532532
* append the group attribute to the target list if it's not already
533533
* in there.
534534
*/
535-
#if0
535+
#ifdefNOT_USED
536536
void
537537
AddGroupAttrToTlist(List*tlist,List*grpCl)
538538
{

‎src/backend/utils/cache/relcache.c

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.15 1997/08/19 21:35:13 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.16 1997/08/20 14:54:07 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -90,6 +90,22 @@ static void RelationFlushRelation(Relation *relationPtr,
9090
staticRelationRelationNameCacheGetRelation(char*relationName);
9191
staticvoidinit_irels(void);
9292
staticvoidwrite_irels(void);
93+
/* non-export function prototypes */
94+
staticvoidformrdesc(char*relationName,u_intnatts,
95+
FormData_pg_attributeatt[]);
96+
staticHeapTupleScanPgRelation(RelationBuildDescInfobuildinfo);
97+
staticHeapTuplescan_pg_rel_seq(RelationBuildDescInfobuildinfo);
98+
staticHeapTuplescan_pg_rel_ind(RelationBuildDescInfobuildinfo);
99+
staticRelationAllocateRelationDesc(u_intnatts,Form_pg_classrelp);
100+
staticvoidRelationBuildTupleDesc(RelationBuildDescInfobuildinfo,
101+
Relationrelation,AttributeTupleFormattp,u_intnatts);
102+
staticvoidbuild_tupdesc_seq(RelationBuildDescInfobuildinfo,
103+
Relationrelation,AttributeTupleFormattp,u_intnatts);
104+
staticvoidbuild_tupdesc_ind(RelationBuildDescInfobuildinfo,
105+
Relationrelation,AttributeTupleFormattp,u_intnatts);
106+
staticRelationRelationBuildDesc(RelationBuildDescInfobuildinfo);
107+
staticvoidIndexedAccessMethodInitialize(Relationrelation);
108+
93109

94110
/* ----------------
95111
*defines
@@ -238,27 +254,6 @@ typedef struct relnamecacheent {
238254
} \
239255
}
240256

241-
/* non-export function prototypes */
242-
staticvoidformrdesc(char*relationName,u_intnatts,
243-
FormData_pg_attributeatt[]);
244-
245-
#if0/* See comments at line 1304 */
246-
staticvoidRelationFlushIndexes(Relation*r,OidaccessMethodId);
247-
#endif
248-
249-
staticHeapTupleScanPgRelation(RelationBuildDescInfobuildinfo);
250-
staticHeapTuplescan_pg_rel_seq(RelationBuildDescInfobuildinfo);
251-
staticHeapTuplescan_pg_rel_ind(RelationBuildDescInfobuildinfo);
252-
staticRelationAllocateRelationDesc(u_intnatts,Form_pg_classrelp);
253-
staticvoidRelationBuildTupleDesc(RelationBuildDescInfobuildinfo,
254-
Relationrelation,AttributeTupleFormattp,u_intnatts);
255-
staticvoidbuild_tupdesc_seq(RelationBuildDescInfobuildinfo,
256-
Relationrelation,AttributeTupleFormattp,u_intnatts);
257-
staticvoidbuild_tupdesc_ind(RelationBuildDescInfobuildinfo,
258-
Relationrelation,AttributeTupleFormattp,u_intnatts);
259-
staticRelationRelationBuildDesc(RelationBuildDescInfobuildinfo);
260-
staticvoidIndexedAccessMethodInitialize(Relationrelation);
261-
262257
/*
263258
* newlyCreatedRelns -
264259
* relations created during this transaction. We need to keep track of
@@ -273,7 +268,7 @@ static List *newlyCreatedRelns = NULL;
273268
*/
274269

275270

276-
#if0/* XXX This doesn't seem to be used anywhere */
271+
#ifdefNOT_USED/* XXX This doesn't seem to be used anywhere */
277272
/* --------------------------------
278273
*BuildDescInfoError returns a string appropriate to
279274
*the buildinfo passed to it
@@ -1351,7 +1346,7 @@ RelationIdInvalidateRelationCacheByRelationId(Oid relationId)
13511346
}
13521347
}
13531348

1354-
#if0/* See comments at line 1304 */
1349+
#ifdefNOT_USED/* See comments at line 1304 */
13551350
/* --------------------------------
13561351
*RelationIdInvalidateRelationCacheByAccessMethodId
13571352
*

‎src/include/parser/parse_query.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: parse_query.h,v 1.8 1997/08/19 21:39:37 momjian Exp $
9+
* $Id: parse_query.h,v 1.9 1997/08/20 14:54:26 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -58,11 +58,6 @@ extern void handleTargetColname(ParseState *pstate, char **resname,
5858
* analyze.c
5959
*/
6060

61-
#if0
62-
externList*p_rtable;
63-
externintNumLevels;
64-
#endif
65-
6661
OidexprType(Node*expr);
6762
QueryTreeList*parse_analyze(List*querytree_list);
6863

‎src/include/utils/memutils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* Copyright (c) 1994, Regents of the University of California
1717
*
18-
* $Id: memutils.h,v 1.7 1997/08/19 21:40:43 momjian Exp $
18+
* $Id: memutils.h,v 1.8 1997/08/20 14:54:35 momjian Exp $
1919
*
2020
* NOTES
2121
* some of the information in this file will be moved to
@@ -27,7 +27,7 @@
2727
#defineMEMUTILS_H
2828

2929

30-
#if0
30+
#ifdefNOT_USED
3131
/*****************************************************************************
3232
*align.h- alignment macros *
3333
****************************************************************************

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp