diff options
Diffstat (limited to 'src/sksl/ir/SkSLSwitchStatement.h')
-rw-r--r-- | src/sksl/ir/SkSLSwitchStatement.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/sksl/ir/SkSLSwitchStatement.h b/src/sksl/ir/SkSLSwitchStatement.h index 2c48bad1ba..68d0ef02df 100644 --- a/src/sksl/ir/SkSLSwitchStatement.h +++ b/src/sksl/ir/SkSLSwitchStatement.h @@ -26,15 +26,6 @@ struct SwitchStatement : public Statement { , fSymbols(std::move(symbols)) , fCases(std::move(cases)) {} - std::unique_ptr<Statement> clone() const override { - std::vector<std::unique_ptr<SwitchCase>> cloned; - for (const auto& s : fCases) { - cloned.push_back(std::unique_ptr<SwitchCase>((SwitchCase*) s->clone().release())); - } - return std::unique_ptr<Statement>(new SwitchStatement(fOffset, fIsStatic, fValue->clone(), - std::move(cloned), fSymbols)); - } - String description() const override { String result; if (fIsStatic) { |