The unified diff between revisions [2df88abf..] and [818e3621..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'transforms.cc'
#
#
# patch "transforms.cc"
# from [97e062a540994d9920fa25be161efeb111d342ea]
# to [65d1b80ad0301fa708e2f074653954495e81e79f]
#
============================================================
--- transforms.cc 97e062a540994d9920fa25be161efeb111d342ea
+++ transforms.cc 65d1b80ad0301fa708e2f074653954495e81e79f
@@ -223,23 +223,6 @@ calculate_ident(revision_data const & da
ident = revision_id(tmp);
}
-string
-canonical_base64(string const & s)
-{
- try
- {
- Botan::Pipe pipe(new Botan::Base64_Decoder(),
- new Botan::Base64_Encoder());
- pipe.process_msg(s);
- return pipe.read_all_as_string();
- }
- catch (Botan::Exception & e)
- {
- error_in_transform(e);
- }
-}
-
-
#ifdef BUILD_UNIT_TESTS
#include "unit_tests.hh"
#include <stdlib.h>
@@ -250,8 +233,8 @@ UNIT_TEST(transform, enc)
gzip<data> gzd1, gzd2;
base64< gzip<data> > bgzd;
encode_gzip(d1, gzd1);
- encode_base64(gzd1, bgzd);
- decode_base64(bgzd, gzd2);
+ bgzd = encode_base64(gzd1);
+ gzd2 = decode_base64(bgzd);
UNIT_TEST_CHECK(gzd2 == gzd1);
decode_gzip(gzd2, d2);
UNIT_TEST_CHECK(d2 == d1);