Bug 1252384 - Remove nsICertTree.isHostPortOverride(). r=dkeeler
authorCykesiopka <cykesiopka.bmo@gmail.com>
Wed, 06 Apr 2016 07:02:17 -0700
changeset 292052 0ed5e2650d6a8bf871154ac549d3351a137c4fa1
parent 292051 3ce2c626f6ba24e4303f2c1f84287f834c952a4b
child 292053 3000c58d1d8e355889bc9a4ea1c9f56bc2f2f665
push id30152
push userkwierso@gmail.com
push dateThu, 07 Apr 2016 20:42:20 +0000
treeherdermozilla-central@06678484909c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdkeeler
bugs1252384, 825583
milestone48.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 1252384 - Remove nsICertTree.isHostPortOverride(). r=dkeeler It is unused since the changes in Bug 825583 landed. MozReview-Commit-ID: 2u2eu0aDqeH
security/manager/ssl/nsCertTree.cpp
security/manager/ssl/nsICertTree.idl
--- a/security/manager/ssl/nsCertTree.cpp
+++ b/security/manager/ssl/nsCertTree.cpp
@@ -852,29 +852,16 @@ nsCertTree::GetTreeItem(uint32_t aIndex,
   if (!certdi)
     return NS_ERROR_FAILURE;
 
   *_treeitem = certdi;
   NS_IF_ADDREF(*_treeitem);
   return NS_OK;
 }
 
-NS_IMETHODIMP
-nsCertTree::IsHostPortOverride(uint32_t aIndex, bool *_retval)
-{
-  NS_ENSURE_ARG(_retval);
-
-  RefPtr<nsCertTreeDispInfo> certdi(GetDispInfoAtIndex(aIndex));
-  if (!certdi)
-    return NS_ERROR_FAILURE;
-
-  *_retval = (certdi->mTypeOfEntry == nsCertTreeDispInfo::host_port_override);
-  return NS_OK;
-}
-
 NS_IMETHODIMP 
 nsCertTree::GetRowCount(int32_t *aRowCount)
 {
   if (!mTreeArray)
     return NS_ERROR_NOT_INITIALIZED;
   uint32_t count = 0;
   for (int32_t i=0; i<mNumOrgs; i++) {
     if (mTreeArray[i].open) {
--- a/security/manager/ssl/nsICertTree.idl
+++ b/security/manager/ssl/nsICertTree.idl
@@ -13,28 +13,25 @@ interface nsIX509CertList;
 [scriptable, uuid(d0180863-606e-49e6-8324-cf45ed4dd891)]
 interface nsICertTreeItem : nsISupports {
   readonly attribute nsIX509Cert cert;
   readonly attribute AString hostPort;
 };
 
 [scriptable, uuid(55d5ad6b-5572-47fe-941c-f01fe723659e)]
 interface nsICertTree : nsITreeView {
-
   void loadCerts(in unsigned long type);
   void loadCertsFromCache(in nsIX509CertList cache, in unsigned long type);
 
   nsIX509Cert getCert(in unsigned long index);
   nsICertTreeItem getTreeItem(in unsigned long index);
-  boolean isHostPortOverride(in unsigned long index);
 
   void deleteEntryObject(in unsigned long index);
 };
 
 %{C++
 
 #define NS_CERTTREE_CID { 0x4ea60761, 0x31d6, 0x491d, \
                          { 0x9e, 0x34, 0x4b, 0x53, 0xa2, 0x6c, 0x41, 0x6c } }
 
 #define NS_CERTTREE_CONTRACTID "@mozilla.org/security/nsCertTree;1"
 
 %}
-