From 4dba52375756920cb92ad7ce4486544b0e307bd6 Mon Sep 17 00:00:00 2001 From: Andrey Goncharov Date: Fri, 19 May 2023 10:48:06 -0700 Subject: [PATCH] Remove unused patches Summary: Fixes Github CI failures on main (see T153688440) Reviewed By: lblasa Differential Revision: D46016296 fbshipit-source-id: 61c624797aa4a9a967b7c9f81fbe71b5908de236 --- desktop/patches/adbkit+2.11.1.patch | 47 ----------------------- desktop/patches/adbkit-logcat+2.0.1.patch | 13 ------- 2 files changed, 60 deletions(-) delete mode 100644 desktop/patches/adbkit+2.11.1.patch delete mode 100644 desktop/patches/adbkit-logcat+2.0.1.patch diff --git a/desktop/patches/adbkit+2.11.1.patch b/desktop/patches/adbkit+2.11.1.patch deleted file mode 100644 index 6ed26002c..000000000 --- a/desktop/patches/adbkit+2.11.1.patch +++ /dev/null @@ -1,47 +0,0 @@ -diff --git a/node_modules/adbkit/lib/adb/parser.js b/node_modules/adbkit/lib/adb/parser.js -index 1b66bda..c41037d 100644 ---- a/node_modules/adbkit/lib/adb/parser.js -+++ b/node_modules/adbkit/lib/adb/parser.js -@@ -52,7 +52,7 @@ Parser = (function() { - - Parser.prototype.readAll = function() { - var all, endListener, errorListener, resolver, tryRead; -- all = new Buffer(0); -+ all = Buffer.alloc(0); - resolver = Promise.defer(); - tryRead = (function(_this) { - return function() { -@@ -108,7 +108,7 @@ Parser = (function() { - return resolver.reject(new Parser.PrematureEOFError(howMany)); - } - } else { -- return resolver.resolve(new Buffer(0)); -+ return resolver.resolve(Buffer.alloc(0)); - } - }; - })(this); -@@ -196,7 +196,7 @@ Parser = (function() { - - Parser.prototype.readUntil = function(code) { - var read, skipped; -- skipped = new Buffer(0); -+ skipped = Buffer.alloc(0); - read = (function(_this) { - return function() { - return _this.readBytes(1).then(function(chunk) { -diff --git a/node_modules/adbkit/lib/adb/protocol.js b/node_modules/adbkit/lib/adb/protocol.js -index d1377d0..2edd7ba 100644 ---- a/node_modules/adbkit/lib/adb/protocol.js -+++ b/node_modules/adbkit/lib/adb/protocol.js -@@ -33,9 +33,9 @@ Protocol = (function() { - - Protocol.encodeData = function(data) { - if (!Buffer.isBuffer(data)) { -- data = new Buffer(data); -+ data = Buffer.from(data); - } -- return Buffer.concat([new Buffer(Protocol.encodeLength(data.length)), data]); -+ return Buffer.concat([Buffer.from(Protocol.encodeLength(data.length)), data]); - }; - - return Protocol; diff --git a/desktop/patches/adbkit-logcat+2.0.1.patch b/desktop/patches/adbkit-logcat+2.0.1.patch deleted file mode 100644 index 96f5a8756..000000000 --- a/desktop/patches/adbkit-logcat+2.0.1.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/node_modules/adbkit-logcat/lib/logcat/parser/binary.js b/node_modules/adbkit-logcat/lib/logcat/parser/binary.js -index 12fa8ec..e122933 100644 ---- a/node_modules/adbkit-logcat/lib/logcat/parser/binary.js -+++ b/node_modules/adbkit-logcat/lib/logcat/parser/binary.js -@@ -10,7 +10,7 @@ const HEADER_SIZE_MAX = 100 - class Binary extends EventEmitter { - constructor(options) { - super(options) -- this.buffer = new Buffer(0) -+ this.buffer = Buffer.alloc(0) - } - - parse(chunk) {