[rs-commit] r63 - /redwax-signtext/trunk/src/linux/firefox/content.js
rs-commit at redwax.eu
rs-commit at redwax.eu
Sat Sep 17 17:27:15 CEST 2022
Author: minfrin at redwax.eu
Date: Sat Sep 17 17:27:13 2022
New Revision: 63
Log:
Remove unused code.
Modified:
redwax-signtext/trunk/src/linux/firefox/content.js
Modified: redwax-signtext/trunk/src/linux/firefox/content.js
==============================================================================
--- redwax-signtext/trunk/src/linux/firefox/content.js (original)
+++ redwax-signtext/trunk/src/linux/firefox/content.js Sat Sep 17 17:27:13 2022
@@ -14,30 +14,6 @@
* using exportFunction to pass the messages.
*/
if (typeof exportFunction == 'function') {
-
- function stringReader(str) {
- var offset = 0;
- const chunkSize = 10;
-
- const source = new window.wrappedJSObject.Object();
-
- source.pull = exportFunction(
- function(controller) {
-console.log("reader pull: " + " desiredsize: " + controller.desiredSize);
- var nextOffset = offset + chunkSize;
- if (nextOffset >= str.length) {
- nextOffset = str.length;
- controller.enqueue(str.substring(offset, nextOffset));
- controller.close();
- } else {
- controller.enqueue(str.substring(offset, nextOffset));
- }
- offset = nextOffset;
- }, window.wrappedJSObject
- );
-
- return new window.wrappedJSObject.ReadableStream(source);
- }
function uuidv4() {
return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, c =>
More information about the rs-commit
mailing list