From 3a9f173050cdcb301a53aa18cfd1a0d625bd44e8 Mon Sep 17 00:00:00 2001 From: Sandeep Dasgupta Date: Fri, 3 Jan 2025 18:33:23 +0000 Subject: [PATCH] Remove unused function from StripFuncQuantTypes --- mlir/lib/Dialect/Quant/Transforms/StripFuncQuantTypes.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/mlir/lib/Dialect/Quant/Transforms/StripFuncQuantTypes.cpp b/mlir/lib/Dialect/Quant/Transforms/StripFuncQuantTypes.cpp index 71b88d1be1b05..02384de27ab5e 100644 --- a/mlir/lib/Dialect/Quant/Transforms/StripFuncQuantTypes.cpp +++ b/mlir/lib/Dialect/Quant/Transforms/StripFuncQuantTypes.cpp @@ -65,14 +65,6 @@ class QuantizedTypeConverter : public TypeConverter { class StripFuncQuantTypes : public impl::StripFuncQuantTypesBase { - // Return whether a type is considered legal when occurring in the header of - // a function or as an operand to a 'return' op. - static bool isLegalType(Type type) { - if (auto tensorType = dyn_cast(type)) - return isLegalType(tensorType.getElementType()); - return !isa(type); - } - public: void runOnOperation() override {