🗑 Remove unneeded code
This commit is contained in:
parent
9353111085
commit
313f65609f
1 changed files with 0 additions and 2 deletions
|
@ -52,7 +52,6 @@ int main(int argc, unsigned char *argv[]) {
|
||||||
fprintf(stderr, "Could not allocate %lu bytes for compressed buffer.\n", BUFFER_SIZE);
|
fprintf(stderr, "Could not allocate %lu bytes for compressed buffer.\n", BUFFER_SIZE);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
//memset(compressedChunk, (uint8_t)0, BUFFER_SIZE);
|
|
||||||
|
|
||||||
uint8_t* uncompressedChunk = malloc(BUFFER_SIZE);
|
uint8_t* uncompressedChunk = malloc(BUFFER_SIZE);
|
||||||
if (uncompressedChunk == NULL) {
|
if (uncompressedChunk == NULL) {
|
||||||
|
@ -98,7 +97,6 @@ int main(int argc, unsigned char *argv[]) {
|
||||||
while (remainingBytes > 0 || !hasReachedEnd) {
|
while (remainingBytes > 0 || !hasReachedEnd) {
|
||||||
if (needToRead) {
|
if (needToRead) {
|
||||||
chunkSize = min(BUFFER_SIZE - uncompressedPosition, remainingBytes);
|
chunkSize = min(BUFFER_SIZE - uncompressedPosition, remainingBytes);
|
||||||
//memset(compressedChunk, 0, chunkSize);
|
|
||||||
getBytes(compressedChunk, chunkSize);
|
getBytes(compressedChunk, chunkSize);
|
||||||
remainingBytes -= chunkSize;
|
remainingBytes -= chunkSize;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue