4040#include " mozilla/dom/power/PowerManagerService.h"
4141#include " mozilla/dom/FlyWebPublishedServer.h"
4242#include " mozilla/dom/FlyWebService.h"
43- #include " mozilla/dom/IccManager.h"
4443#include " mozilla/dom/InputPortManager.h"
4544#include " mozilla/dom/Permissions.h"
4645#include " mozilla/dom/Presentation.h"
5756#include " Connection.h"
5857#include " mozilla/dom/Event.h" // for nsIDOMEvent::InternalDOMEvent()
5958#include " nsGlobalWindow.h"
60- #ifdef MOZ_B2G_RIL
61- #include " mozilla/dom/MobileConnectionArray.h"
62- #endif
6359#include " nsIIdleObserver.h"
6460#include " nsIPermissionManager.h"
6561#include " nsMimeTypes.h"
@@ -211,13 +207,9 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(Navigator)
211207 NS_IMPL_CYCLE_COLLECTION_TRAVERSE (mBatteryManager )
212208 NS_IMPL_CYCLE_COLLECTION_TRAVERSE (mBatteryPromise )
213209 NS_IMPL_CYCLE_COLLECTION_TRAVERSE (mPowerManager )
214- NS_IMPL_CYCLE_COLLECTION_TRAVERSE (mIccManager )
215210 NS_IMPL_CYCLE_COLLECTION_TRAVERSE (mInputPortManager )
216211 NS_IMPL_CYCLE_COLLECTION_TRAVERSE (mConnection )
217212 NS_IMPL_CYCLE_COLLECTION_TRAVERSE (mStorageManager )
218- #ifdef MOZ_B2G_RIL
219- NS_IMPL_CYCLE_COLLECTION_TRAVERSE (mMobileConnections )
220- #endif
221213#ifdef MOZ_AUDIO_CHANNEL_MANAGER
222214 NS_IMPL_CYCLE_COLLECTION_TRAVERSE (mAudioChannelManager )
223215#endif
@@ -278,11 +270,6 @@ Navigator::Invalidate()
278270 mPowerManager = nullptr ;
279271 }
280272
281- if (mIccManager ) {
282- mIccManager ->Shutdown ();
283- mIccManager = nullptr ;
284- }
285-
286273 if (mInputPortManager ) {
287274 mInputPortManager = nullptr ;
288275 }
@@ -292,12 +279,6 @@ Navigator::Invalidate()
292279 mConnection = nullptr ;
293280 }
294281
295- #ifdef MOZ_B2G_RIL
296- if (mMobileConnections ) {
297- mMobileConnections = nullptr ;
298- }
299- #endif
300-
301282 mMediaDevices = nullptr ;
302283
303284#ifdef MOZ_AUDIO_CHANNEL_MANAGER
@@ -1626,40 +1607,6 @@ Navigator::MozTCPSocket()
16261607 return socket.forget ();
16271608}
16281609
1629- #ifdef MOZ_B2G_RIL
1630-
1631- MobileConnectionArray*
1632- Navigator::GetMozMobileConnections (ErrorResult& aRv)
1633- {
1634- if (!mMobileConnections ) {
1635- if (!mWindow ) {
1636- aRv.Throw (NS_ERROR_UNEXPECTED);
1637- return nullptr ;
1638- }
1639- mMobileConnections = new MobileConnectionArray (mWindow );
1640- }
1641-
1642- return mMobileConnections ;
1643- }
1644-
1645- #endif // MOZ_B2G_RIL
1646-
1647- IccManager*
1648- Navigator::GetMozIccManager (ErrorResult& aRv)
1649- {
1650- if (!mIccManager ) {
1651- if (!mWindow ) {
1652- aRv.Throw (NS_ERROR_UNEXPECTED);
1653- return nullptr ;
1654- }
1655- NS_ENSURE_TRUE (mWindow ->GetDocShell (), nullptr);
1656-
1657- mIccManager = new IccManager(mWindow );
1658- }
1659-
1660- return mIccManager ;
1661- }
1662-
16631610#ifdef MOZ_GAMEPAD
16641611void
16651612Navigator::GetGamepads (nsTArray<RefPtr<Gamepad> >& aGamepads,
0 commit comments