Bug 1530402 - Remove unused NULL_MESSAGE_DELEGATE. r=snorp
☠☠ backed out by 8f3cbd66bbc3 ☠ ☠
authorAgi Sferro <agi@sferro.dev>
Wed, 13 Nov 2019 20:28:52 +0000
changeset 501835 1aa5898efa5feef71f8e3171e02837c25f93f46b
parent 501834 7462bbe4e67611ae77c7d47d19031c4fe9127e50
child 501836 9630bed0ca2cf583b56b3bc597906ecbbf8e87f8
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);
-        }
-    };
 }