Bug 773373 part 1: Remove some dead code. r=honzab
authorJonas Sicking <jonas@sicking.cc>
Tue, 25 Sep 2012 16:06:27 -0700
changeset 108080 ede3e79682afc735a288fb9ca47f54db445a3b52
parent 108079 ef8799918715e8ad86754340036ca00e573d02d3
child 108081 c80ba174e4b97c11435b5860f7e2e58403e9a4dc
push id23533
push usermlamouri@mozilla.com
push dateWed, 26 Sep 2012 10:57:37 +0000
treeherdermozilla-central@df69d95f636c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershonzab
bugs773373
milestone18.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 773373 part 1: Remove some dead code. r=honzab
dom/src/storage/nsDOMStorageDBWrapper.cpp
dom/src/storage/nsDOMStorageDBWrapper.h
--- a/dom/src/storage/nsDOMStorageDBWrapper.cpp
+++ b/dom/src/storage/nsDOMStorageDBWrapper.cpp
@@ -324,28 +324,16 @@ nsDOMStorageDBWrapper::CreateQuotaDBKey(
   NS_ENSURE_SUCCESS(rv, rv);
 
   CreateReversedDomain(eTLDplusOne, subdomainsDBKey);
 
   aKey.Assign(subdomainsDBKey);
   return NS_OK;
 }
 
-nsresult
-nsDOMStorageDBWrapper::GetDomainFromScopeKey(const nsACString& aScope,
-                                             nsACString& aDomain)
-{
-  nsAutoCString reverseDomain, scope;
-  scope = aScope;
-  scope.Left(reverseDomain, scope.FindChar(':')-1);
-
-  ReverseString(reverseDomain, aDomain);
-  return NS_OK;
-}
-
 void
 nsDOMStorageDBWrapper::EnsureTempTableFlushTimer()
 {
   if (!mTempTableFlushTimer) {
     nsresult rv;
     mTempTableFlushTimer = do_CreateInstance(NS_TIMER_CONTRACTID, &rv);
 
     if (!NS_SUCCEEDED(rv)) {
--- a/dom/src/storage/nsDOMStorageDBWrapper.h
+++ b/dom/src/storage/nsDOMStorageDBWrapper.h
@@ -185,19 +185,16 @@ public:
   /**
     * Turns "foo.bar.com" to "moc.rab.",
     * i.e. extracts eTLD+1 from the host, reverses the result
     * and appends a dot.
     */
   static nsresult CreateQuotaDBKey(const nsACString& aAsciiDomain,
                                    nsACString& aKey);
 
-  static nsresult GetDomainFromScopeKey(const nsACString& aScope,
-                                        nsACString& aDomain);
-
   /**
    * Ensures the temp table flush timer is running. This is called when we add
    * data that will need to be flushed.
    */
   void EnsureTempTableFlushTimer();
 
   /**
    * Called by the timer or on shutdown/profile change to flush all temporary