diff --git a/mlir/lib/Dialect/Quant/Transforms/StripFuncQuantTypes.cpp b/mlir/lib/Dialect/Quant/Transforms/StripFuncQuantTypes.cpp index de834fed90e42..4009faa21576d 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 {