diff --git a/src/utils/cells.jl b/src/utils/cells.jl index 276a09b..18764ad 100644 --- a/src/utils/cells.jl +++ b/src/utils/cells.jl @@ -50,9 +50,7 @@ n_dimensions(::PeriodicCell{D}) where {D} = D # kwarg constructor for PeriodicCell -function PeriodicCell(; cell_vectors=nothing, periodicity, cell_vectors=nothing) - !isnothing(cell_vectors) && @warn "cell_vectors kwarg is deprecated and will be removed" - cell_vectors = something(cell_vectors, cell_vectors) +function PeriodicCell(; cell_vectors=nothing, periodicity) PeriodicCell(_auto_cell_vectors(cell_vectors), _auto_pbc(periodicity, cell_vectors)) end