From ccc528b3514014d7542778cd764413c3e0ae903d Mon Sep 17 00:00:00 2001 From: Jim King Date: Sat, 28 May 2022 12:45:11 -0400 Subject: [PATCH] issue-1816: remove unused variable causing build failure --- .../source/text-to-speech/TextToSpeechManager.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/aws-cpp-sdk-text-to-speech/source/text-to-speech/TextToSpeechManager.cpp b/aws-cpp-sdk-text-to-speech/source/text-to-speech/TextToSpeechManager.cpp index 82a298f5a40..f995fcfd4a4 100644 --- a/aws-cpp-sdk-text-to-speech/source/text-to-speech/TextToSpeechManager.cpp +++ b/aws-cpp-sdk-text-to-speech/source/text-to-speech/TextToSpeechManager.cpp @@ -152,7 +152,6 @@ namespace Aws AWS_LOGSTREAM_TRACE(CLASS_TAG, "Audio retrieved from Polly. " << result.GetContentType() << " with " << result.GetRequestCharacters() << " characters syntesized"); - std::streamsize amountRead(0); unsigned char buffer[BUFF_SIZE]; std::lock_guard m(m_driverLock); @@ -165,7 +164,6 @@ namespace Aws AWS_LOGSTREAM_TRACE(CLASS_TAG, "Writing " << read << " bytes to device."); successfullyPlayed = m_activeDriver->WriteBufferToDevice(buffer, (std::size_t)read); - amountRead += read; played = successfullyPlayed; }