[mlir][sparse] Removing unused helper function
authorwren romano <2998727+wrengr@users.noreply.github.com>
Tue, 30 May 2023 20:47:22 +0000 (13:47 -0700)
committerwren romano <2998727+wrengr@users.noreply.github.com>
Tue, 30 May 2023 22:59:26 +0000 (15:59 -0700)
Depends On D151505

Reviewed By: aartbik, Peiming

Differential Revision: https://reviews.llvm.org/D151522

mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp

index a1eda89..7f8dcba 100644 (file)
@@ -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<RankedTensorType>`.)
-template <typename T>
-static inline Dimension getDimRank(T t) {
-  return getRankedTensorType(t).getRank();
-}
-
-//===----------------------------------------------------------------------===//
 // StorageLayout
 //===----------------------------------------------------------------------===//