Skip to content

fix: remove five files nothing references - #66

Merged
catinspace-au merged 1 commit into
mainfrom
fix/remove-orphan-files
Aug 27, 2026
Merged

fix: remove five files nothing references#66
catinspace-au merged 1 commit into
mainfrom
fix/remove-orphan-files

Conversation

@catinspace-au

Copy link
Copy Markdown
Contributor

Five files nothing references, found by a hygiene sweep of the whole tree rather than a diff. Each was checked for references across the repo before removal, and the role-file-reference gate still resolves all 54 static references afterwards.

File Why it goes
roles/soe/files/default-background.svg byte-identical copy (md5 51893ea6) of the wallpaper
roles/developer/files/branding/background.svg same file again, same md5
roles/developer/files/branding/avatar.svg no reference anywhere
roles/developer/files/update/hyperi-update.png only the .svg and .icns are deployed
tools/add-dev-user.sh byte-identical (md5 dec58a0e) to the copy Ansible installs

The two wallpaper duplicates are ~494KB each. Neither was reachable: Ansible resolves a src: against the current role's files/ and the playbook directory, never a sibling role. The live copy sits in roles/soe-gui/files/, beside the task that copies it.

avatar_file has defaulted to user-avatar.png since the branding feature's first commit, so branding/avatar.svg was never wired up. update_command.yml deploys the .svg (Linux icon) and AppIcon.icns (macOS), and the .desktop file's Icon= resolves via the installed .svg, so the .png has no path to a machine.

tools/add-dev-user.sh duplicates roles/developer/files/add-dev-user, which is the copy that actually reaches /usr/local/sbin. Nothing referenced the tools/ one -- not tools/README.md, not any script or doc.

tools/ci/run-tests.sh green.

Found by a hygiene sweep of the whole tree, not just a diff. Each was checked
for references across the repo before removal, and the role-file-reference gate
still resolves all 54 static references afterwards.

  roles/soe/files/default-background.svg
  roles/developer/files/branding/background.svg
      Byte-identical copies (md5 51893ea6) of the wallpaper that now lives in
      roles/soe-gui/files/, beside the task that copies it. Nothing could reach
      either: Ansible resolves a `src:` against the current role's files/ and
      the playbook directory, never a sibling role. ~494KB each.

  roles/developer/files/branding/avatar.svg
      No reference anywhere. avatar_file has defaulted to user-avatar.png since
      the branding feature's first commit, so this was never wired up.

  roles/developer/files/update/hyperi-update.png
      update_command.yml deploys only the .svg (Linux icon) and AppIcon.icns
      (macOS); the .desktop file's Icon= resolves via the installed .svg.

  tools/add-dev-user.sh
      Byte-identical (md5 dec58a0e) to roles/developer/files/add-dev-user, the
      copy Ansible actually installs to /usr/local/sbin. Referenced by nothing
      -- not tools/README.md, not any script or doc.
@catinspace-au
catinspace-au merged commit e1b68dd into main Aug 27, 2026
16 checks passed
@catinspace-au
catinspace-au deleted the fix/remove-orphan-files branch August 27, 2026 04:44
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