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

ruby-changes:53854

From: duerst <ko1@a...>
Date: Wed, 28 Nov 2018 16:08:04 +0900 (JST)
Subject: [ruby-changes:53854] duerst:r66072 (trunk): remove two unnecessary variables (np2 and np3)

duerst	2018-11-28 16:07:59 +0900 (Wed, 28 Nov 2018)

  New Revision: 66072

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

  Log:
    remove two unnecessary variables (np2 and np3)

  Modified files:
    trunk/regparse.c
Index: regparse.c
===================================================================
--- regparse.c	(revision 66071)
+++ regparse.c	(revision 66072)
@@ -5807,8 +5807,6 @@ node_extended_grapheme_cluster(Node** np https://github.com/ruby/ruby/blob/trunk/regparse.c#L5807
 {
   Node* tmp = NULL;
   Node* np1 = NULL;
-  Node* np2 = NULL;
-  Node* np3 = NULL;
   Node* list = NULL;
   Node* list2 = NULL;
   Node* alt = NULL;
@@ -6253,8 +6251,6 @@ node_extended_grapheme_cluster(Node** np https://github.com/ruby/ruby/blob/trunk/regparse.c#L6251
 
  err:
   onig_node_free(np1);
-  onig_node_free(np2);
-  onig_node_free(np3);
   onig_node_free(list);
   onig_node_free(list2);
   onig_node_free(alt);

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

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