diff options
| author | 2018-11-08 18:00:22 -0800 | |
|---|---|---|
| committer | 2018-11-11 23:18:31 +0000 | |
| commit | f77adb1fbcefafb09d1eb4bf050be2ad23ae781a (patch) | |
| tree | 87563ca3bad76cea2e8ff782269a6c025cfbe9dd | |
| parent | cbdc47aee5e12b5da8f85c2de3bd53fc116b5405 (diff) | |
Remove unused private field mVrClient from VrCommandEngine
There is a compile warning: private field 'mVrClient' is not used [-Wunused-private-field]
Bug: None
Test: build
Change-Id: I58d2f1f176727ef293067cbc62da4d971f4fc4e5
| -rw-r--r-- | services/vr/hardware_composer/Android.bp | 1 | ||||
| -rw-r--r-- | services/vr/hardware_composer/impl/vr_composer_client.cpp | 2 | ||||
| -rw-r--r-- | services/vr/hardware_composer/impl/vr_composer_client.h | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/services/vr/hardware_composer/Android.bp b/services/vr/hardware_composer/Android.bp index 003775b7dc..258b45b95a 100644 --- a/services/vr/hardware_composer/Android.bp +++ b/services/vr/hardware_composer/Android.bp @@ -55,7 +55,6 @@ cc_library_shared { "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", "-Wall", "-Werror", - // mVrClient unused in vr_composer_client.cpp "-Wno-error=unused-private-field", // Warnings in vr_hwc.cpp to be fixed after sync of goog/master. "-Wno-sign-compare", diff --git a/services/vr/hardware_composer/impl/vr_composer_client.cpp b/services/vr/hardware_composer/impl/vr_composer_client.cpp index d775711ef7..786d5fac98 100644 --- a/services/vr/hardware_composer/impl/vr_composer_client.cpp +++ b/services/vr/hardware_composer/impl/vr_composer_client.cpp @@ -45,7 +45,7 @@ VrComposerClient::createCommandEngine() { } VrComposerClient::VrCommandEngine::VrCommandEngine(VrComposerClient& client) - : ComposerCommandEngine(client.mHal, client.mResources.get()), mVrClient(client), + : ComposerCommandEngine(client.mHal, client.mResources.get()), mVrHal(client.mVrHal) {} VrComposerClient::VrCommandEngine::~VrCommandEngine() {} diff --git a/services/vr/hardware_composer/impl/vr_composer_client.h b/services/vr/hardware_composer/impl/vr_composer_client.h index 76b1c4ff83..de22640321 100644 --- a/services/vr/hardware_composer/impl/vr_composer_client.h +++ b/services/vr/hardware_composer/impl/vr_composer_client.h @@ -54,7 +54,6 @@ class VrComposerClient : public ComposerClient { IVrComposerClient::BufferMetadata readBufferMetadata(); - VrComposerClient& mVrClient; android::dvr::VrHwc& mVrHal; VrCommandEngine(const VrCommandEngine&) = delete; |