From: Dmitri Gribenko Date: Mon, 23 Sep 2019 12:15:48 +0000 (+0000) Subject: Removed dead code from Stencil.h X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=133ef3bf8b4d2854899d829e8ed53289dd03224a;p=clang Removed dead code from Stencil.h git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372594 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Tooling/Refactoring/Stencil.h b/include/clang/Tooling/Refactoring/Stencil.h index e57a576e55..1f24ccb261 100644 --- a/include/clang/Tooling/Refactoring/Stencil.h +++ b/include/clang/Tooling/Refactoring/Stencil.h @@ -153,16 +153,6 @@ inline StencilPart node(llvm::StringRef Id) { return selection(tooling::node(Id)); } -/// Variant of \c node() that identifies the node as a statement, for purposes -/// of deciding whether to include any trailing semicolon. Only relevant for -/// Expr nodes, which, by default, are *not* considered as statements. -/// \returns the source corresponding to the identified node, considered as a -/// statement. -/// FIXME: Deprecated. Write `selection(statement(Id))` instead. -inline StencilPart sNode(llvm::StringRef Id) { - return selection(tooling::statement(Id)); -} - /// For debug use only; semantics are not guaranteed. /// /// \returns the string resulting from calling the node's print() method.