diff --git a/src/Bounds.cpp b/src/Bounds.cpp index d080b291b50f..841a40639f3e 100644 --- a/src/Bounds.cpp +++ b/src/Bounds.cpp @@ -1857,20 +1857,6 @@ Interval bounds_of_expr_in_scope_with_indent(const Expr &expr, const Scope &scope, const FuncValueBounds &fb, bool const_bound) { diff --git a/src/SplitTuples.cpp b/src/SplitTuples.cpp index b0c9a378b3ba..ee805634c151 100644 --- a/src/SplitTuples.cpp +++ b/src/SplitTuples.cpp @@ -36,29 +36,6 @@ class FindCallValueIndices : public IRVisitor { } }; -// Visitor and helper function to test if a piece of IR uses an extern image. -class UsesExternImage : public IRVisitor { - using IRVisitor::visit; - - void visit(const Call *c) override { - if (c->call_type == Call::Image) { - result = true; - } else { - IRVisitor::visit(c); - } - } - -public: - UsesExternImage() = default; - bool result = false; -}; - -inline bool uses_extern_image(const Stmt &s) { - UsesExternImage uses; - s.accept(&uses); - return uses.result; -} - class SplitTuples : public IRMutator { using IRMutator::visit;