Skip to content

Remove dead and deprecated code. - #2190

Open
brendan-nasa wants to merge 7 commits into
masterfrom
remove-dead-code
Open

Remove dead and deprecated code.#2190
brendan-nasa wants to merge 7 commits into
masterfrom
remove-dead-code

Conversation

@brendan-nasa

@brendan-nasa brendan-nasa commented Aug 19, 2026

Copy link
Copy Markdown
Contributor
  • Remove _HAVE_TR1_RANDOM flag. This flag was used to differentiate between draft C++11 (c++0x, TR1) and standard C++11 compiler support. Neither of which is needed anymore because Trick's baseline C++ version is C++17.
  • Remove old compiler gate for unsupported c++ version (pre-C++11).
  • throw() -> noexcept. Replace empty throw expressions with noexcept. Destructors are implicitly noexcept
  • Remove old compiler gates. Bump minimum versions to gcc 5 and clang 5. Removed gates that checked compiler versions older than our minimum (baseline minimum we require is gcc and clang 5 from 2015 and 2017, respectively, for C++17 support). __GNUC__ is defined for both clang and gcc. Removed those checks.
  • Fix FindTrickICG. Not really dead code but was incorrectly overriding the base class; particularly Elif() which we had defined as ElIf(). Wasn't caught because we used virtual instead of override.

This flag was used to differentiate between draft C++11 (c++0x) and
standard C++11 compiler support. Neither of which is needed anymore
because Trick's baseline c++ version is c++17.
@coveralls

coveralls commented Aug 19, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 56.777% (+0.02%) from 56.76% — remove-dead-code into master

TRICK_SYSTEM_CXXFLAGS += -fcolor-diagnostics
else
GCC_MAJOR := $(shell $(TRICK_CC) -dumpversion | cut -f1 -d.)
GCC_MINOR := $(shell $(TRICK_CC) -dumpversion | cut -f2 -d.)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we sure we don't want to check the minor version, juuuuuust in case

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.

3 participants