From eb906c7894bb0f4788b49968a637f434133ff879 Mon Sep 17 00:00:00 2001 From: Scott Wood Date: Sun, 6 Apr 2008 23:13:42 -0500 Subject: [PATCH 1/1] parser: remove unnecessary retains --- idlcomp/cdlparse.y | 2 -- idlcomp/idlparse.y | 2 -- 2 files changed, 4 deletions(-) diff --git a/idlcomp/cdlparse.y b/idlcomp/cdlparse.y index ae5d00a..34135bd 100644 --- a/idlcomp/cdlparse.y +++ b/idlcomp/cdlparse.y @@ -344,8 +344,6 @@ qualified_decl: cur_strlist = new StrList; } qualified_ident_raw { $$.ident = cur_strlist->back(); - $$.ident->retain(); - cur_strlist->pop_back(); if (!cur_strlist->empty()) diff --git a/idlcomp/idlparse.y b/idlcomp/idlparse.y index e15c7dd..a6f30e9 100644 --- a/idlcomp/idlparse.y +++ b/idlcomp/idlparse.y @@ -725,8 +725,6 @@ qualified_ident: qualified_decl: qualified_ident_raw { $$.ident = cur_strlist->back(); - $$.ident->retain(); - cur_strlist->pop_back(); if (!cur_strlist->empty()) -- 2.39.2