From 158cdcb9cf09418ba8b49f4be7be69e37aa8e9fa Mon Sep 17 00:00:00 2001 From: arthurhsu Date: Tue, 11 Oct 2011 01:01:16 +0000 Subject: Update to Sep 30 snapshot, include all current EBXX support. Refine Iterator ports: all java-style Iterator objects are ref-counted and have automatic memory management now. --- cpp/src/sfntly/data/byte_array.cc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'cpp/src/sfntly/data/byte_array.cc') diff --git a/cpp/src/sfntly/data/byte_array.cc b/cpp/src/sfntly/data/byte_array.cc index c820adc..915a40c 100644 --- a/cpp/src/sfntly/data/byte_array.cc +++ b/cpp/src/sfntly/data/byte_array.cc @@ -115,13 +115,7 @@ int32_t ByteArray::CopyTo(int32_t dst_offset, ByteArray* array, while ((bytes_read = Get(index + src_offset, &(b[0]), 0, buffer_length)) > 0) { int bytes_written = array->Put(index + dst_offset, &(b[0]), 0, bytes_read); - if (bytes_written != bytes_read) { -#if defined (SFNTLY_NO_EXCEPTION) - return 0; -#else - throw IOException("Error writing bytes."); -#endif - } + UNREFERENCED_PARAMETER(bytes_written); index += bytes_read; remaining_length -= bytes_read; buffer_length = std::min(b.size(), remaining_length); -- cgit v1.2.3