aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-09-05 23:39:14 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-09-05 23:39:14 -0400
commitb4d5d4d1748d25efa6197914a36e276e93509f57 (patch)
treea2c9e08c0053026ab9779d050e72ad24ef3ec682 /src/codegen.cpp
parent97c9f61db47ddba43a0db562e13773514875fa6a (diff)
downloadzig-b4d5d4d1748d25efa6197914a36e276e93509f57.tar.gz
zig-b4d5d4d1748d25efa6197914a36e276e93509f57.zip
assume evenly divided base64
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index e258f8d609..f4823f1048 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -7760,27 +7760,6 @@ static void base64_encode(Slice<uint8_t> dest, Slice<uint8_t> source) {
// Assert that we never need pad characters.
assert(i == source.len);
- //if (i < source.len) {
- // dest.ptr[out_index] = base64_fs_alphabet[(source.ptr[i] >> 2) & 0x3f];
- // out_index += 1;
-
- // if (i + 1 == source.len) {
- // dest.ptr[out_index] = base64_fs_alphabet[(source.ptr[i] & 0x3) << 4];
- // out_index += 1;
-
- // dest.ptr[out_index] = encoder.pad_char;
- // out_index += 1;
- // } else {
- // dest.ptr[out_index] = base64_fs_alphabet[((source.ptr[i] & 0x3) << 4) | ((source.ptr[i + 1] & 0xf0) >> 4)];
- // out_index += 1;
-
- // dest.ptr[out_index] = base64_fs_alphabet[(source.ptr[i + 1] & 0xf) << 2];
- // out_index += 1;
- // }
-
- // dest.ptr[out_index] = encoder.pad_char;
- // out_index += 1;
- //}
}
// Called before init()