]> granicus.if.org Git - clang/commitdiff
Removed dead code from Stencil.h
authorDmitri Gribenko <gribozavr@gmail.com>
Mon, 23 Sep 2019 12:15:48 +0000 (12:15 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Mon, 23 Sep 2019 12:15:48 +0000 (12:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372594 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Tooling/Refactoring/Stencil.h

index e57a576e557554da15a6509186c17a50dbe226a5..1f24ccb26100a5fdb7a8e5c396bb77407d81da74 100644 (file)
@@ -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.