diff --git a/python/taichi/linalg/sparse_matrix.py b/python/taichi/linalg/sparse_matrix.py index 9cd064d62aac9..443afd933aae3 100644 --- a/python/taichi/linalg/sparse_matrix.py +++ b/python/taichi/linalg/sparse_matrix.py @@ -1,4 +1,3 @@ -import warnings from functools import reduce import numpy as np @@ -7,7 +6,7 @@ from taichi.lang.exception import TaichiRuntimeError from taichi.lang.field import Field from taichi.lang.impl import get_runtime -from taichi.types import annotations, f32 +from taichi.types import f32 class SparseMatrix: @@ -294,14 +293,4 @@ def build(self, dtype=f32, _format="CSR"): raise TaichiRuntimeError("Sparse matrix only supports CPU and CUDA backends.") -# TODO: remove this in 1.0 release -class sparse_matrix_builder(annotations.sparse_matrix_builder): - def __init__(self): - warnings.warn( - "ti.linalg.sparse_matrix_builder is deprecated, and it will be removed in Taichi v1.6.0. " - "Please use ti.types.sparse_matrix_builder instead.", - DeprecationWarning, - ) - - -__all__ = ["SparseMatrix", "SparseMatrixBuilder", "sparse_matrix_builder"] +__all__ = ["SparseMatrix", "SparseMatrixBuilder"] diff --git a/tests/python/test_deprecation.py b/tests/python/test_deprecation.py index f9d40ac0de051..358b3c9d3b55d 100644 --- a/tests/python/test_deprecation.py +++ b/tests/python/test_deprecation.py @@ -86,12 +86,3 @@ def test_deprecation_in_taichi_init_py(): match="ti.SOA is deprecated, and it will be removed in Taichi v1.6.0.", ): ti.SOA - - -@test_utils.test() -def test_deprecate_sparse_matrix_builder(): - with pytest.warns( - DeprecationWarning, - match=r"ti\.linalg\.sparse_matrix_builder is deprecated, and it will be removed in Taichi v1\.6\.0\.", - ): - ti.linalg.sparse_matrix_builder()