Skip to content

cleanup: remove unused offset field from OverloadFTOps#78

Draft
Koan-Bot wants to merge 1 commit intocpan-authors:mainfrom
Koan-Bot:koan.atoomic/cleanup-unused-offset-field
Draft

cleanup: remove unused offset field from OverloadFTOps#78
Koan-Bot wants to merge 1 commit intocpan-authors:mainfrom
Koan-Bot:koan.atoomic/cleanup-unused-offset-field

Conversation

@Koan-Bot
Copy link
Copy Markdown
Contributor

@Koan-Bot Koan-Bot commented Apr 6, 2026

What

Remove the unused int offset member from the OverloadFTOps struct.

Why

This field is never read or written anywhere — not in XS handlers, not in BOOT, not in Perl-side code. It wastes sizeof(int) per instance and misleads readers about the module's design.

How

Single-line deletion from FileCheck.h. The struct is zero-initialized with Newxz, so removing the field is safe with no behavioral change.

Testing

Full test suite passes (make test). No code references offset outside the struct definition.

Closes #64

🤖 Generated with Claude Code

The `int offset` member was never read or written anywhere in the XS,
header, or Perl code. Removing it reduces confusion and eliminates
sizeof(int) of wasted memory per instance.

Closes cpan-authors#64

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cleanup: unused offset field in OverloadFTOps struct

1 participant