diff --git a/peglib.h b/peglib.h index 20b5080..717b142 100644 --- a/peglib.h +++ b/peglib.h @@ -2312,13 +2312,6 @@ private: const std::vector filters_; }; -template -static std::shared_ptr optimize_ast( - std::shared_ptr ast, - const std::vector& filters = {}) { - return AstOptimizer(true, filters).optimize(ast); -} - struct EmptyType {}; typedef AstBase Ast;