diff mbox

[C++] remove unused identifier

Message ID 2f6b428b-9140-d008-b1a9-7ab58ba06d28@acm.org
State New
Headers show

Commit Message

Nathan Sidwell June 20, 2017, 4:29 p.m. UTC
'nelts' was a suspiciously gnu user space identifier to have.  Turns out 
we don't use it anywhere.  so killed ...

nathan
diff mbox

Patch

2017-06-20  Nathan Sidwell  <nathan@acm.org>

	* cp-tree.h (CPTI_NELTS_IDENTIFIER): Delete.
	(nelts_identifier): Delete.
	* decl.c (initialize_predefined_identifiers): Remove nelts.

Index: cp-tree.h
===================================================================
--- cp-tree.h	(revision 249418)
+++ cp-tree.h	(working copy)
@@ -136,7 +136,6 @@  enum cp_tree_index
     CPTI_DELTA_IDENTIFIER,
     CPTI_IN_CHARGE_IDENTIFIER,
     CPTI_VTT_PARM_IDENTIFIER,
-    CPTI_NELTS_IDENTIFIER,
     CPTI_THIS_IDENTIFIER,
     CPTI_PFN_IDENTIFIER,
     CPTI_VPTR_IDENTIFIER,
@@ -234,7 +233,6 @@  extern GTY(()) tree cp_global_trees[CPTI
 /* The name of the parameter that contains a pointer to the VTT to use
    for this subobject constructor or destructor.  */
 #define vtt_parm_identifier		cp_global_trees[CPTI_VTT_PARM_IDENTIFIER]
-#define nelts_identifier		cp_global_trees[CPTI_NELTS_IDENTIFIER]
 #define this_identifier			cp_global_trees[CPTI_THIS_IDENTIFIER]
 #define pfn_identifier			cp_global_trees[CPTI_PFN_IDENTIFIER]
 #define vptr_identifier			cp_global_trees[CPTI_VPTR_IDENTIFIER]
Index: decl.c
===================================================================
--- decl.c	(revision 249418)
+++ decl.c	(working copy)
@@ -3982,7 +3982,6 @@  initialize_predefined_identifiers (void)
     { "__base_dtor ", &base_dtor_identifier, 1 },
     { "__deleting_dtor ", &deleting_dtor_identifier, 1 },
     { IN_CHARGE_NAME, &in_charge_identifier, 0 },
-    { "nelts", &nelts_identifier, 0 },
     { THIS_NAME, &this_identifier, 0 },
     { VTABLE_DELTA_NAME, &delta_identifier, 0 },
     { VTABLE_PFN_NAME, &pfn_identifier, 0 },