From f58e67dee9355f54a88aa866b355c298317c3272 Mon Sep 17 00:00:00 2001 From: wren romano <2998727+wrengr@users.noreply.github.com> Date: Tue, 30 May 2023 13:47:22 -0700 Subject: [PATCH] [mlir][sparse] Removing unused helper function Depends On D151505 Reviewed By: aartbik, Peiming Differential Revision: https://reviews.llvm.org/D151522 --- mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp b/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp index a1eda89..7f8dcba 100644 --- a/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp +++ b/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp @@ -32,17 +32,6 @@ using namespace mlir; using namespace mlir::sparse_tensor; //===----------------------------------------------------------------------===// -// Additional convenience methods. -//===----------------------------------------------------------------------===// - -/// Gets the dimension-rank of the type of some `T`. (In particular -/// this is only used for `Value` and `TypedValue`.) -template -static inline Dimension getDimRank(T t) { - return getRankedTensorType(t).getRank(); -} - -//===----------------------------------------------------------------------===// // StorageLayout //===----------------------------------------------------------------------===// -- 2.7.4