[libSyntax] Remove unnecessary getOpaqueNode and takeOpaqueNode from ParsedRawSyntaxNode

They are superseded by getData/takeData
This commit is contained in:
Alex Hoppen
2021-03-01 10:34:52 +01:00
parent 439b44b365
commit a38dc1aa60
2 changed files with 2 additions and 14 deletions

View File

@@ -163,19 +163,6 @@ public:
/// Returns the range of this node including leading and trailing trivia.
CharSourceRange getRange() const { return Range; }
// Recorded Data ===========================================================//
OpaqueSyntaxNode getOpaqueNode() const {
assert(isRecorded());
return Data.getOpaque();
}
OpaqueSyntaxNode takeOpaqueNode() {
assert(isRecorded());
auto opaque = Data.getOpaque();
reset();
return opaque;
}
// Deferred Layout Data ====================================================//
/// If this node is a deferred layout node, return the child at index \p