commit | bb5c80bdec4922aac973551b4f3cbd1008e57820 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Wed Oct 05 11:07:36 2016 -0700 |
committer | Steven Moreland <smoreland@google.com> | Fri Oct 07 11:10:41 2016 -0700 |
tree | 0c25f59fe3b2ff2847a5faf2712b79f628fdc05b | |
parent | c5abc8681d126a13d63ff47afe1d3676ed2d5351 [diff] [blame] |
Removed useless function Type::ref. Test: make hidl-gen, hidl_test Change-Id: I9358a12d43b2a856e5150eb69fb8bc9ccfadf65b
diff --git a/AST.cpp b/AST.cpp index a1fab37..016204b 100644 --- a/AST.cpp +++ b/AST.cpp
@@ -227,7 +227,7 @@ type = static_cast<TypeDef *>(type)->referencedType(); } - return type->ref(); + return type; } } } @@ -347,7 +347,7 @@ } } - return returnedType->ref(); + return returnedType; } Type *AST::findDefinedType(const FQName &fqName, FQName *matchingName) const {