GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: remove dead code in base64_encode · nodejs/node@9435fbf

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • base64-inl.h
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/base64-inl.h‎

Copy file name to clipboardExpand all lines: src/base64-inl.h
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,19 +169,13 @@ inline size_t base64_encode(const char* src,
169169
a = src[i + 0] & 0xff;
170170
dst[k + 0] = table[a >> 2];
171171
dst[k + 1] = table[(a & 3) << 4];
172-
if (mode == Base64Mode::NORMAL) {
173-
dst[k + 2] = '=';
174-
dst[k + 3] = '=';
175-
}
176172
break;
177173
case 2:
178174
a = src[i + 0] & 0xff;
179175
b = src[i + 1] & 0xff;
180176
dst[k + 0] = table[a >> 2];
181177
dst[k + 1] = table[((a & 3) << 4) | (b >> 4)];
182178
dst[k + 2] = table[(b & 0x0f) << 2];
183-
if (mode == Base64Mode::NORMAL)
184-
dst[k + 3] = '=';
185179
break;
186180
}
187181

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.