Skip to content

Remove dead shadow_pict field from win struct - #51

Open
jEsuSdA wants to merge 1 commit into
tycho-kirchner:masterfrom
jEsuSdA:fix/remove-dead-shadow-pict-field
Open

Remove dead shadow_pict field from win struct#51
jEsuSdA wants to merge 1 commit into
tycho-kirchner:masterfrom
jEsuSdA:fix/remove-dead-shadow-pict-field

Conversation

@jEsuSdA

@jEsuSdA jEsuSdA commented Jul 2, 2026

Copy link
Copy Markdown

Summary

Removes the unused shadow_pict field from the win struct, shrinking it by one pointer with no functional change.

Problem

The shadow_pict field in the win struct is set to None on creation and never used anywhere in the codebase. It is a leftover from earlier development that serves no purpose.

Solution

Remove the field and all assignments/frees associated with it.

Scope

  • cm-window.h — removes Picture shadow_pict field
  • fastcompmgr.c — removes three references (init in add_win, free in determine_mode, free in finish_destroy_win)
  • make clean && make produces zero warnings, zero errors

Impact

Shrinks the win struct by 8 bytes on 64-bit platforms. No functional change.

The shadow_pict field in the win struct was set to None on creation and
never used anywhere in the codebase. Removing it shrinks the struct by
one Picture pointer (8 bytes on 64-bit) with no functional change.
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.

1 participant