Bug 1530402 - Remove unused NULL_MESSAGE_DELEGATE. r=snorp
☠☠ backed out by 17db3abeba1a ☠ ☠
authorAgi Sferro <agi@sferro.dev>
Thu, 14 Nov 2019 19:08:28 +0000
changeset 502021 82b28001164b902bab92f653f875f2487a6e06c3
parent 502020 1dc6a4ebc9e1373385e3b2d703b9319ca4694a10
child 502022 4fcca36d5b3e81bdd232540daa12987200dae5ee
push id114172
push userdluca@mozilla.com
push dateTue, 19 Nov 2019 11:31:10 +0000
treeherdermozilla-inbound@b5c5ba07d3db [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssnorp
bugs1530402
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1530402 - Remove unused NULL_MESSAGE_DELEGATE. r=snorp Differential Revision: https://phabricator.services.mozilla.com/D49053
mobile/android/geckoview/src/main/java/org/mozilla/geckoview/WebExtension.java
--- a/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/WebExtension.java
+++ b/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/WebExtension.java
@@ -468,26 +468,9 @@ public class WebExtension {
          *
          * @return true if the MessageSender was sent from the top level frame,
          *         false otherwise.
          * */
         public boolean isTopLevel() {
             return this.isTopLevel;
         }
     }
-
-    private static final MessageDelegate NULL_MESSAGE_DELEGATE = new MessageDelegate() {
-        @Override
-        public GeckoResult<Object> onMessage(final @NonNull String nativeApp,
-                                             final @NonNull Object message,
-                                             final @NonNull MessageSender sender) {
-            Log.d(LOGTAG, "Unhandled message from " + nativeApp + " id=" +
-                    sender.webExtension.id + ": " + message.toString());
-            return null;
-        }
-
-        @Override
-        public void onConnect(final @NonNull Port port) {
-            Log.d(LOGTAG, "Unhandled connect request from " +
-                    port.sender.webExtension.id);
-        }
-    };
 }