aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-12 02:53:28 -0500
committerJack Lloyd <[email protected]>2016-11-12 02:53:28 -0500
commit8f2e7b93769e17e7fc1b99cb25b17d670b5b46bf (patch)
tree4216bd7da0f44d62a8d96c0eb525eea5ee604164
parenteda1db90585c11507854b5584d7d4acf7e47be15 (diff)
Remove unused variable from tests
-rw-r--r--src/tests/test_aead.cpp4
-rw-r--r--src/tests/test_modes.cpp4
2 files changed, 0 insertions, 8 deletions
diff --git a/src/tests/test_aead.cpp b/src/tests/test_aead.cpp
index 1558c0d30..24352a536 100644
--- a/src/tests/test_aead.cpp
+++ b/src/tests/test_aead.cpp
@@ -117,8 +117,6 @@ class AEAD_Tests : public Text_Based_Test
result.test_eq("correct number of bytes processed", bytes_written, bytes_to_process);
- const size_t remaining = input.size() - bytes_to_process;
-
enc->finish(buf, bytes_to_process);
result.test_eq("encrypt", buf, expected);
}
@@ -212,8 +210,6 @@ class AEAD_Tests : public Text_Based_Test
result.test_eq("correct number of bytes processed", bytes_written, bytes_to_process);
- const size_t remaining = input.size() - bytes_to_process;
-
dec->finish(buf, bytes_to_process);
result.test_eq("decrypt", buf, expected);
}
diff --git a/src/tests/test_modes.cpp b/src/tests/test_modes.cpp
index 4949d1c98..174b2b17e 100644
--- a/src/tests/test_modes.cpp
+++ b/src/tests/test_modes.cpp
@@ -81,8 +81,6 @@ class Cipher_Mode_Tests : public Text_Based_Test
result.test_eq("correct number of bytes processed", bytes_written, bytes_to_process);
- const size_t remaining = input_length - bytes_to_process;
-
enc->finish(buf, bytes_to_process);
result.test_eq("encrypt", buf, expected);
}
@@ -123,8 +121,6 @@ class Cipher_Mode_Tests : public Text_Based_Test
result.test_eq("correct number of bytes processed", bytes_written, bytes_to_process);
- const size_t remaining = input_length - bytes_to_process;
-
dec->finish(buf, bytes_to_process);
result.test_eq("decrypt", buf, input);
}