diff --git a/include/gui/SurfaceTextureClient.h b/include/gui/SurfaceTextureClient.h index 50fd1baab..56d861a46 100644 --- a/include/gui/SurfaceTextureClient.h +++ b/include/gui/SurfaceTextureClient.h @@ -41,12 +41,6 @@ public: SurfaceTextureClient(const sp& surfaceTexture); - // SurfaceTextureClient is overloaded to assist in refactoring ST and BQ. - // SurfaceTexture is no longer an ISurfaceTexture, so client code - // calling the original constructor will fail. Thus this convenience method - // passes in the surfaceTexture's bufferQueue to the init method. - SurfaceTextureClient(const sp& surfaceTexture); - sp getISurfaceTexture() const; protected: diff --git a/libs/gui/SurfaceTextureClient.cpp b/libs/gui/SurfaceTextureClient.cpp index afdbf04a9..7588b9ecb 100644 --- a/libs/gui/SurfaceTextureClient.cpp +++ b/libs/gui/SurfaceTextureClient.cpp @@ -41,14 +41,6 @@ SurfaceTextureClient::SurfaceTextureClient( SurfaceTextureClient::setISurfaceTexture(surfaceTexture); } -// see SurfaceTextureClient.h -SurfaceTextureClient::SurfaceTextureClient(const - sp& surfaceTexture) -{ - SurfaceTextureClient::init(); - SurfaceTextureClient::setISurfaceTexture(surfaceTexture->getBufferQueue()); -} - SurfaceTextureClient::SurfaceTextureClient() { SurfaceTextureClient::init(); }