[前][次][番号順一覧][スレッド一覧]

ruby-changes:53998

From: duerst <ko1@a...>
Date: Wed, 5 Dec 2018 19:40:22 +0900 (JST)
Subject: [ruby-changes:53998] duerst:r66218 (trunk): remove unused variables in node_extended_grapheme_cluster()

duerst	2018-12-05 19:40:17 +0900 (Wed, 05 Dec 2018)

  New Revision: 66218

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66218

  Log:
    remove unused variables in node_extended_grapheme_cluster()

  Modified files:
    trunk/regparse.c
Index: regparse.c
===================================================================
--- regparse.c	(revision 66217)
+++ regparse.c	(revision 66218)
@@ -5827,10 +5827,6 @@ node_extended_grapheme_cluster(Node** np https://github.com/ruby/ruby/blob/trunk/regparse.c#L5827
 {
   Node* tmp = NULL;
   Node* np1 = NULL;
-  Node* list = NULL;
-  Node* list2 = NULL;
-  Node* alt = NULL;
-  Node* alt2 = NULL;
   Node* top_alt = NULL;
   BBuf *pbuf1 = NULL;
   int r = 0;
@@ -6082,10 +6078,6 @@ node_extended_grapheme_cluster(Node** np https://github.com/ruby/ruby/blob/trunk/regparse.c#L6078
 
  err:
   onig_node_free(np1);
-  onig_node_free(list);
-  onig_node_free(list2);
-  onig_node_free(alt);
-  onig_node_free(alt2);
   bbuf_free(pbuf1);
   for (i=0; i<NODE_ARRAY_SIZE; i++)
     onig_node_free(node_array[i]);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]