Skip to content

[maintenance] Remove unused <assert.h> from source files - #21795

Open
victoryforce wants to merge 1 commit into
darktable-org:masterfrom
victoryforce:remove-unused-assert-includes
Open

[maintenance] Remove unused <assert.h> from source files#21795
victoryforce wants to merge 1 commit into
darktable-org:masterfrom
victoryforce:remove-unused-assert-includes

Conversation

@victoryforce

Copy link
Copy Markdown
Collaborator

In some cases the source code did use assert(), but later when the call to this function was removed the include was not and it became stale and unused.

In other cases the include was not actually used from the very first version of the code. It looks like <assert.h> was sometimes included as a copy-paste of an includes block from some similar code...

This PR fixes 67 instances of unnecessary include (plus 1 in the previous PR, so there were 68 in total).

In some cases the source code did use assert(), but later when the call to this
function was removed the include was not and it became stale and unused.

In other cases the include was not actually used from the very first version of
the code. It looks like <assert.h> was sometimes included as a copy-paste of
an includes block from some similar code...
@victoryforce victoryforce added the scope: codebase making darktable source code easier to manage label Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: codebase making darktable source code easier to manage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant