diff --git a/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp b/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp --- a/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp +++ b/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp @@ -31,17 +31,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 //===----------------------------------------------------------------------===//