Bug 620365 - Remove unused GetAgeInDays; r=mak a=sdwilsh
authorMs2ger <ms2ger@gmail.com>
Mon, 20 Dec 2010 10:39:42 -0800
changeset 59517 e59145d3eed65dd7a91d34371b1da8b65242a4b6
parent 59516 4e6f930a1363007b847f460ece9ff072d7f76c12
child 59518 bc5f97f0255647d1bc348e705040163ae504649e
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersmak, sdwilsh
bugs620365
milestone2.0b9pre
Bug 620365 - Remove unused GetAgeInDays; r=mak a=sdwilsh
toolkit/components/places/src/nsNavHistory.cpp
--- a/toolkit/components/places/src/nsNavHistory.cpp
+++ b/toolkit/components/places/src/nsNavHistory.cpp
@@ -5962,28 +5962,16 @@ nsNavHistory::ResultsAsList(mozIStorageS
     nsRefPtr<nsNavHistoryResultNode> result;
     rv = RowToResult(row, aOptions, getter_AddRefs(result));
     NS_ENSURE_SUCCESS(rv, rv);
     aResults->AppendObject(result);
   }
   return NS_OK;
 }
 
-static PRInt64
-GetAgeInDays(PRTime aNormalizedNow, PRTime aDate)
-{
-  PRTime dateMidnight = NormalizeTimeRelativeToday(aDate);
-  // if the visit time is in the future
-  // treat as "today" see bug #385867
-  if (dateMidnight > aNormalizedNow)
-    return 0;
-  else
-    return ((aNormalizedNow - dateMidnight) / USECS_PER_DAY);
-}
-
 const PRInt64 UNDEFINED_URN_VALUE = -1;
 
 // Create a urn (like
 // urn:places-persist:place:group=0&group=1&sort=1&type=1,,%28local%20files%29)
 // to be used to persist the open state of this container in localstore.rdf
 nsresult
 CreatePlacesPersistURN(nsNavHistoryQueryResultNode *aResultNode, 
                       PRInt64 aValue, const nsCString& aTitle, nsCString& aURN)