Remove unused argument from ApplyLogicalMappingFile()

Started by Yugo Nagata6 months ago4 messageshackers
Jump to latest
#1Yugo Nagata
nagata@sraoss.co.jp

Hi,

I noticed that ApplyLogicalMappingFile() has an unused argument.
If there is no specific reason for keeping it, I think it could be
removed. I have attached a small patch that removes this argument.

Regards,
Yugo Nagata

--
Yugo Nagata <nagata@sraoss.co.jp>

Attachments:

Remove_unnecessary_arg_of_ApplyLogicalMappingFile.patchtext/x-diff; name=Remove_unnecessary_arg_of_ApplyLogicalMappingFile.patchDownload+2-2
#2Hayato Kuroda (Fujitsu)
kuroda.hayato@fujitsu.com
In reply to: Yugo Nagata (#1)
RE: Remove unused argument from ApplyLogicalMappingFile()

Dear Nagata-san,

I noticed that ApplyLogicalMappingFile() has an unused argument.
If there is no specific reason for keeping it, I think it could be
removed. I have attached a small patch that removes this argument.

Good catch. I found that ApplyLogicalMappingFile() has the argument since it was
introduced (b89e151) and was not used from the beginning. Maybe it was a
copy-to-paste mistake from UpdateLogicalMappings()?
I removed the argument and ran tests for subscription, they could be passed.

Best regards,
Hayato Kuroda
FUJITSU LIMITED

#3Fujii Masao
masao.fujii@gmail.com
In reply to: Hayato Kuroda (Fujitsu) (#2)
Re: Remove unused argument from ApplyLogicalMappingFile()

On Wed, Jan 28, 2026 at 2:18 PM Hayato Kuroda (Fujitsu)
<kuroda.hayato@fujitsu.com> wrote:

Dear Nagata-san,

I noticed that ApplyLogicalMappingFile() has an unused argument.
If there is no specific reason for keeping it, I think it could be
removed. I have attached a small patch that removes this argument.

Thanks for the patch! I will commit it.

Good catch. I found that ApplyLogicalMappingFile() has the argument since it was
introduced (b89e151) and was not used from the beginning.

Yes.

I removed the argument and ran tests for subscription, they could be passed.

Thanks for the test!

Regards,

--
Fujii Masao

#4Fujii Masao
masao.fujii@gmail.com
In reply to: Fujii Masao (#3)
Re: Remove unused argument from ApplyLogicalMappingFile()

On Wed, Jan 28, 2026 at 6:23 PM Fujii Masao <masao.fujii@gmail.com> wrote:

On Wed, Jan 28, 2026 at 2:18 PM Hayato Kuroda (Fujitsu)
<kuroda.hayato@fujitsu.com> wrote:

Dear Nagata-san,

I noticed that ApplyLogicalMappingFile() has an unused argument.
If there is no specific reason for keeping it, I think it could be
removed. I have attached a small patch that removes this argument.

Thanks for the patch! I will commit it.

I've pushed the patch. Thanks!

Regards,

--
Fujii Masao