Skip to content

Commit 1d995e0

Browse files
committed
Removes unused variable.
1 parent 3c6705e commit 1d995e0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

aws-cpp-sdk-text-to-speech/source/text-to-speech/TextToSpeechManager.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ namespace Aws
152152
AWS_LOGSTREAM_TRACE(CLASS_TAG, "Audio retrieved from Polly. " << result.GetContentType() << " with "
153153
<< result.GetRequestCharacters() << " characters syntesized");
154154

155-
std::streamsize amountRead(0);
156155
unsigned char buffer[BUFF_SIZE];
157156

158157
std::lock_guard<std::mutex> m(m_driverLock);
@@ -165,7 +164,6 @@ namespace Aws
165164
AWS_LOGSTREAM_TRACE(CLASS_TAG, "Writing " << read << " bytes to device.");
166165

167166
successfullyPlayed = m_activeDriver->WriteBufferToDevice(buffer, (std::size_t)read);
168-
amountRead += read;
169167
played = successfullyPlayed;
170168
}
171169

0 commit comments

Comments
 (0)