Remove unused lambda captures
Test: build
Bug: 37752547
Change-Id: Ibb689dea2dcd0165dc24a9fc9c433ed7383974b3
diff --git a/Interface.cpp b/Interface.cpp
index c592bb4..6ab31f4 100644
--- a/Interface.cpp
+++ b/Interface.cpp
@@ -99,7 +99,7 @@
}, /*cppImpl*/
{
{IMPL_INTERFACE,
- [this](auto &out) {
+ [](auto &out) {
out << "return;\n";
}
},
@@ -139,12 +139,12 @@
}, /*cppImpl*/
{
{IMPL_INTERFACE,
- [this](auto &out) {
+ [](auto &out) {
out << "return true;";
}
},
{IMPL_PROXY,
- [this](auto &out) {
+ [](auto &out) {
out << "return mRemote.linkToDeath(recipient, cookie);\n";
}
},
@@ -188,12 +188,12 @@
}, /*cppImpl*/
{
{IMPL_INTERFACE,
- [this](auto &out) {
+ [](auto &out) {
out << "return true;\n";
}
},
{IMPL_PROXY,
- [this](auto &out) {
+ [](auto &out) {
out << "return mRemote.unlinkToDeath(recipient);\n";
}
},
@@ -209,7 +209,7 @@
method->fillImplementation(
HIDL_SYSPROPS_CHANGED_TRANSACTION,
- { { IMPL_INTERFACE, [this](auto &out) {
+ { { IMPL_INTERFACE, [](auto &out) {
out << "::android::report_sysprop_change();\n";
out << "return ::android::hardware::Void();";
} } }, /*cppImpl */
@@ -229,7 +229,7 @@
HIDL_SET_HAL_INSTRUMENTATION_TRANSACTION,
{
{IMPL_INTERFACE,
- [this](auto &out) {
+ [](auto &out) {
// do nothing for base class.
out << "return ::android::hardware::Void();\n";
}
@@ -380,7 +380,7 @@
HIDL_GET_REF_INFO_TRANSACTION,
{
{IMPL_INTERFACE,
- [this](auto &out) {
+ [](auto &out) {
// getDebugInfo returns N/A for local objects.
out << "_hidl_cb({ -1 /* pid */, 0 /* ptr */, \n"
<< sArch
@@ -389,7 +389,7 @@
}
},
{IMPL_STUB_IMPL,
- [this](auto &out) {
+ [](auto &out) {
out << "_hidl_cb(";
out.block([&] {
out << "::android::hardware::details::debuggable()"
@@ -403,7 +403,7 @@
}
}
}, /* cppImpl */
- { { IMPL_INTERFACE, [this, method](auto &out) {
+ { { IMPL_INTERFACE, [method](auto &out) {
const Type &refInfo = method->results().front()->type();
out << refInfo.getJavaType(false /* forInitializer */) << " info = new "
<< refInfo.getJavaType(true /* forInitializer */) << "();\n"
@@ -427,7 +427,7 @@
HIDL_DEBUG_TRANSACTION,
{
{IMPL_INTERFACE,
- [this](auto &out) {
+ [](auto &out) {
out << "(void)fd;\n"
<< "(void)options;\n"
<< "return ::android::hardware::Void();";