Skip to content

refactor: trim dead code and stray comments from the netdev feature - #3

Merged
achetronic merged 1 commit into
masterfrom
chore/cleanup-netdev-comments
Jun 24, 2026
Merged

refactor: trim dead code and stray comments from the netdev feature#3
achetronic merged 1 commit into
masterfrom
chore/cleanup-netdev-comments

Conversation

@achetronic

Copy link
Copy Markdown
Owner

Small cleanup pass over the host-tuning feature.

  • Removes validateNetdev, a validator that only returned nil and existed "for future fields". Nothing to validate today, so the call and the function are gone.
  • Drops the comment inside Apply that explained which node carries the netdev section. That is the planner's decision, not the applier's business, and the WireGuard and nftables sections next to it carry no such comment.
  • Shortens the NetdevConfig doc comment to say what the type is, leaving out how tunnelctl applies it.

No behaviour change. Tests and vet stay green.

… layers

- remove validateNetdev (a constant-nil placeholder kept "for future fields")
- drop the Apply comment explaining the planner's per-node decision inside the
  generic applier; the other sections carry no such comment
- tighten the NetdevConfig doc comment to what the type is, not how tunnelctl
  applies it
@achetronic achetronic added documentation Improvements or additions to documentation enhancement New feature or request labels Jun 24, 2026
@achetronic achetronic self-assigned this Jun 24, 2026
@achetronic
achetronic merged commit 32828a7 into master Jun 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant