From c3f4de04e15a14798537ae9458af0e66592d1050 Mon Sep 17 00:00:00 2001 From: Steven Johnson Date: Wed, 11 Dec 2024 07:56:25 -0800 Subject: [PATCH] Remove two unused functions (#8501) * Remove two unused functions * Update SplitTuples.cpp --- src/Bounds.cpp | 14 -------------- src/SplitTuples.cpp | 23 ----------------------- 2 files changed, 37 deletions(-) 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;