Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused dependency on libXi #446

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eli-schwartz
Copy link

In commit 6c1db90, the appears_to_be_wayland function was reverted (commented out, really), but the includes and scaffolding for it were left in. This has a couple of effects:

  • The compiler emits a warning for unused functions
  • An additional header include is used
  • The link command is longer, and tries to link to libXi, resulting in overlinking unless -Wl,--as-needed is used

The original rationale for keeping it:

I've left the "is on wayland?" detection code that is otherwise now
unused, in case we want it later.

The code has gone untouched for several years now, so it is probably time to remove it altogether. In a pinch, it can always be retrieved via git log.

In commit 6c1db90, the
appears_to_be_wayland function was reverted (commented out, really), but
the includes and scaffolding for it were left in. This has a couple of
effects:

- The compiler emits a warning for unused functions
- An additional header include is used
- The link command is longer, and tries to link to libXi, resulting in
  overlinking unless -Wl,--as-needed is used

The original rationale for keeping it:

> I've left the "is on wayland?" detection code that is otherwise now
> unused, in case we want it later.

The code has gone untouched for several years now, so it is probably
time to remove it altogether. In a pinch, it can always be retrieved via
`git log`.
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