From a4e920308d2a04ee0aacab06d11990437228aafd Mon Sep 17 00:00:00 2001 From: Aleksandr Nazarkin Date: Fri, 2 Mar 2018 11:51:45 -0500 Subject: [PATCH] Bug 1428048 - Remove dead code browser/modules/CastingApps.jsm and its reference; r=florian CastingApps.jsm was removed from browser/modules/moz.build file in bug 1393582, but the file itself and its usage was not removed from ContextMenu.jsm MozReview-Commit-ID: DsqJTPP66xE --HG-- extra : rebase_source : 077167587e492cb4a8054e134e374c3e18cfdb6b --- browser/modules/CastingApps.jsm | 162 -------------------------------- browser/modules/ContextMenu.jsm | 1 - 2 files changed, 163 deletions(-) delete mode 100644 browser/modules/CastingApps.jsm diff --git a/browser/modules/CastingApps.jsm b/browser/modules/CastingApps.jsm deleted file mode 100644 index 02c3f953c473..000000000000 --- a/browser/modules/CastingApps.jsm +++ /dev/null @@ -1,162 +0,0 @@ -// -*- Mode: js; tab-width: 2; indent-tabs-mode: nil; js2-basic-offset: 2; js2-skip-preprocessor-directives: t; -*- -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. */ -"use strict"; -var EXPORTED_SYMBOLS = ["CastingApps"]; - -ChromeUtils.import("resource://gre/modules/Services.jsm"); -ChromeUtils.import("resource://gre/modules/SimpleServiceDiscovery.jsm"); - - -var CastingApps = { - _sendEventToVideo(element, data) { - let event = element.ownerDocument.createEvent("CustomEvent"); - event.initCustomEvent("media-videoCasting", false, true, JSON.stringify(data)); - element.dispatchEvent(event); - }, - - makeURI(url, charset, baseURI) { - return Services.io.newURI(url, charset, baseURI); - }, - - getVideo(element) { - if (!element) { - return null; - } - - let extensions = SimpleServiceDiscovery.getSupportedExtensions(); - let types = SimpleServiceDiscovery.getSupportedMimeTypes(); - - // Grab the poster attribute from the