refactor(materials): drop Type-instance forwarding for state traits

Remove the `required_state_variables(::Type{<:AbstractMaterial})` shim that
instantiated materials just to query traits; callers should pass instances or
specialize on concrete types directly.

- Delete the default `required_state_variables(::Type{T}) = …` definition from
  `traits.jl`.
This commit is contained in:
Jukka Aho
2026-05-09 17:36:16 +03:00
parent bc82a60228
commit 561fcfbcd0
-3
View File
@@ -42,9 +42,6 @@ Returns tuple of state variable types required by this material.
"""
function required_state_variables end
# Type-level dispatch for required_state_variables (for @generated functions)
required_state_variables(::Type{T}) where {T<:AbstractMaterial} = required_state_variables(T())
# ============================================================================
# MATERIAL-SPECIFIC TRAIT IMPLEMENTATIONS
# ============================================================================