Removed unused param isSlice of function transformAssignmentSubscripts

Started by Zhang Mingliover 3 years ago3 messageshackers
Jump to latest
#1Zhang Mingli
zmlpostgres@gmail.com

Hi,

Param isSlice was once used to identity targetTypeId for transformAssignmentIndirection.

In commit c7aba7c14e, the evaluation was pushed down to transformContainerSubscripts.

No need to keep isSlice around transformAssignmentSubscripts.

Attach a patch to remove it.

Regards,
Zhang Mingli

Attachments:

vn-0001-Removed-unused-param-isSlice.patchapplication/octet-streamDownload+0-10
#2Richard Guo
guofenglinux@gmail.com
In reply to: Zhang Mingli (#1)
Re: Removed unused param isSlice of function transformAssignmentSubscripts

On Tue, Sep 13, 2022 at 11:35 AM Zhang Mingli <zmlpostgres@gmail.com> wrote:

Param isSlice was once used to identity targetTypeId for
transformAssignmentIndirection.

In commit c7aba7c14e, the evaluation was pushed down to
transformContainerSubscripts.

No need to keep isSlice around transformAssignmentSubscripts.

Attach a patch to remove it.

+1. Good catch.

Thanks
Richard

#3Michael Paquier
michael@paquier.xyz
In reply to: Richard Guo (#2)
Re: Removed unused param isSlice of function transformAssignmentSubscripts

On Tue, Sep 13, 2022 at 03:20:01PM +0800, Richard Guo wrote:

+1. Good catch.

Yes, you are right that this comes from c7aba7c that has changed the
transform logic and the check on slicing support, and this makes the
code easier to follow. So, applied.
--
Michael