Bug 969908 - Stop checking the return value of nsTArray::SetLength in MobileConnectionArray; r=khuey
authorEhsan Akhgari <ehsan.akhgari@gmail.com>
Sun, 09 Feb 2014 09:00:49 -0500
changeset 184966 af482ab5738c7465ce299a652dd9d1eefc792e9b
parent 184965 dc3adb06a30242795badd65c11d3d460d0e10b25
child 184967 bee881d0d25931c68a50a7fe25e09a17fe22381c
push id3503
push userraliiev@mozilla.com
push dateMon, 28 Apr 2014 18:51:11 +0000
treeherdermozilla-beta@c95ac01e332e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey
bugs969908
milestone30.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 969908 - Stop checking the return value of nsTArray::SetLength in MobileConnectionArray; r=khuey
dom/mobileconnection/src/MobileConnectionArray.cpp
--- a/dom/mobileconnection/src/MobileConnectionArray.cpp
+++ b/dom/mobileconnection/src/MobileConnectionArray.cpp
@@ -33,18 +33,17 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(
 NS_INTERFACE_MAP_END
 
 MobileConnectionArray::MobileConnectionArray(nsPIDOMWindow* aWindow)
 : mWindow(aWindow), mInitialized(false)
 {
   uint32_t numRil = mozilla::Preferences::GetUint("ril.numRadioInterfaces", 1);
   MOZ_ASSERT(numRil > 0);
 
-  bool ret = mMobileConnections.SetLength(numRil);
-  MOZ_ASSERT(ret);
+  mMobileConnections.SetLength(numRil);
 
   SetIsDOMBinding();
 }
 
 MobileConnectionArray::~MobileConnectionArray()
 {
   DropConnections();
 }