Bug 1530402 - Remove unused NULL_MESSAGE_DELEGATE. r=snorp
☠☠ backed out by 61ebc1a22544 ☠ ☠
authorAgi Sferro <agi@sferro.dev>
Fri, 15 Nov 2019 16:33:34 +0000
changeset 502223 83b9603f5fa19e6f3bc10aff40abd8f8e4e31c4d
parent 502222 50c50a80e881017747f4f65ad5a96a40b6ba92cb
child 502224 23d43a425641029fb5b75b029a7e83959bdce215
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);
-        }
-    };
 }