Skip to content

Commit

Permalink
remove some long deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl committed Aug 6, 2024
1 parent 5185302 commit 295757e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
11 changes: 0 additions & 11 deletions meshmode/discretization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ class Discretization:
.. automethod:: zeros
.. automethod:: zeros_like
.. automethod:: nodes
.. automethod:: num_reference_derivative
.. automethod:: quad_weights
"""

Expand Down Expand Up @@ -504,16 +503,6 @@ def empty_like(self, array: _DOFArray) -> _DOFArray:
def zeros_like(self, array: _DOFArray) -> _DOFArray:
return self.zeros(array.array_context, dtype=array.entry_dtype)

def num_reference_derivative(self,
ref_axes: Iterable[int],
vec: _DOFArray) -> _DOFArray:
warn(
"This method is deprecated and will go away in 2022.x. "
"Use 'meshmode.discretization.num_reference_derivative' instead.",
DeprecationWarning, stacklevel=2)

return num_reference_derivative(self, ref_axes, vec)

@memoize_method
def quad_weights(self) -> _DOFArray:
"""
Expand Down
7 changes: 0 additions & 7 deletions meshmode/discretization/connection/direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,13 +459,6 @@ def is_permutation(self, tol_multiplier: Optional[float] = None) -> bool:
for i_tgrp, cgrp in enumerate(self.groups)
for i_batch in range(len(cgrp.batches)))

def full_resample_matrix(self, actx: ArrayContext):
from warnings import warn
warn("This method is deprecated. Use 'make_direct_full_resample_matrix' "
"instead.", DeprecationWarning, stacklevel=2)

return make_direct_full_resample_matrix(actx, self)

# {{{ _global_point_pick_info_cache

def _per_target_group_pick_info(
Expand Down

0 comments on commit 295757e

Please sign in to comment.