mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-20 10:08:31 +00:00
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:
@@ -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
|
||||
# ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user