Skip to content

Commit 68aba18

Browse files
author
Nicholas C. Zakas
committed
Removed unused code
1 parent cb03b4c commit 68aba18

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

encodings/base64/base64.js

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,36 +19,7 @@
1919
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
* THE SOFTWARE.
22-
*/
23-
24-
/**
25-
* Accepts an array of bits and pads with zeros to the left up to a certain
26-
* length.
27-
* @param {Array} bits An array of bits (strings either "0" or "1").
28-
* @param {int} length The length that the array of bits should be.
29-
* @return {Array} The array of bits.
30-
*/
31-
function padLeft(bits, length){
32-
while (bits.length < length){
33-
bits.unshift("0");
34-
}
35-
return bits;
36-
}
37-
38-
/**
39-
* Accepts an array of bits and pads with zeros to the right up to a certain
40-
* length.
41-
* @param {Array} bits An array of bits (strings either "0" or "1").
42-
* @param {int} length The length that the array of bits should be.
43-
* @return {Array} The array of bits.
44-
*/
45-
function padRight(bits, length){
46-
while (bits.length < length){
47-
bits.push("0");
48-
}
49-
return bits;
50-
}
51-
22+
*/
5223

5324
/**
5425
* Base64-encodes a string of text.

0 commit comments

Comments
 (0)