Bug 835543 part 1: Remove unused class nsNavHistoryFullVisitResultNode. r=mak
authorDaniel Holbert <dholbert@cs.stanford.edu>
Tue, 29 Jan 2013 14:30:13 -0800
changeset 120300 66bedf7bbf0296b95157dd6aab3a41b294c73715
parent 120299 4b6aababc842b989790fa65bd8f9561a202b4011
child 120301 41b0df3dd995541b14183b7196ba1c08155f0d35
push id24246
push userryanvm@gmail.com
push dateWed, 30 Jan 2013 13:05:37 +0000
treeherdermozilla-central@5f9775715519 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs835543
milestone21.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 835543 part 1: Remove unused class nsNavHistoryFullVisitResultNode. r=mak
toolkit/components/places/nsNavHistoryResult.cpp
toolkit/components/places/nsNavHistoryResult.h
--- a/toolkit/components/places/nsNavHistoryResult.cpp
+++ b/toolkit/components/places/nsNavHistoryResult.cpp
@@ -297,34 +297,16 @@ NS_IMPL_ISUPPORTS_INHERITED1(nsNavHistor
 nsNavHistoryVisitResultNode::nsNavHistoryVisitResultNode(
     const nsACString& aURI, const nsACString& aTitle, uint32_t aAccessCount,
     PRTime aTime, const nsACString& aIconURI, int64_t aSession) :
   nsNavHistoryResultNode(aURI, aTitle, aAccessCount, aTime, aIconURI),
   mSessionId(aSession)
 {
 }
 
-
-NS_IMPL_ISUPPORTS_INHERITED1(nsNavHistoryFullVisitResultNode,
-                             nsNavHistoryVisitResultNode,
-                             nsINavHistoryFullVisitResultNode)
-
-nsNavHistoryFullVisitResultNode::nsNavHistoryFullVisitResultNode(
-    const nsACString& aURI, const nsACString& aTitle, uint32_t aAccessCount,
-    PRTime aTime, const nsACString& aIconURI, int64_t aSession,
-    int64_t aVisitId, int64_t aReferringVisitId, int32_t aTransitionType) :
-  nsNavHistoryVisitResultNode(aURI, aTitle, aAccessCount, aTime, aIconURI,
-                              aSession),
-  mVisitId(aVisitId),
-  mReferringVisitId(aReferringVisitId),
-  mTransitionType(aTransitionType)
-{
-}
-
-
 NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(nsNavHistoryContainerResultNode, nsNavHistoryResultNode)
   NS_IMPL_CYCLE_COLLECTION_UNLINK(mResult)
   NS_IMPL_CYCLE_COLLECTION_UNLINK(mChildren)
 NS_IMPL_CYCLE_COLLECTION_UNLINK_END 
 
 NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(nsNavHistoryContainerResultNode, nsNavHistoryResultNode)
   NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mResult)
   NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mChildren)
--- a/toolkit/components/places/nsNavHistoryResult.h
+++ b/toolkit/components/places/nsNavHistoryResult.h
@@ -411,49 +411,16 @@ public:
   NS_IMPLEMENT_VISITRESULT
 
 public:
 
   int64_t mSessionId;
 };
 
 
-// nsNavHistoryFullVisitResultNode
-
-#define NS_IMPLEMENT_FULLVISITRESULT \
-  NS_IMPLEMENT_VISITRESULT \
-  NS_IMETHOD GetVisitId(int64_t *aVisitId) \
-    { *aVisitId = mVisitId; return NS_OK; } \
-  NS_IMETHOD GetReferringVisitId(int64_t *aReferringVisitId) \
-    { *aReferringVisitId = mReferringVisitId; return NS_OK; } \
-  NS_IMETHOD GetTransitionType(int32_t *aTransitionType) \
-    { *aTransitionType = mTransitionType; return NS_OK; }
-
-class nsNavHistoryFullVisitResultNode : public nsNavHistoryVisitResultNode,
-                                        public nsINavHistoryFullVisitResultNode
-{
-public:
-  nsNavHistoryFullVisitResultNode(
-    const nsACString& aURI, const nsACString& aTitle, uint32_t aAccessCount,
-    PRTime aTime, const nsACString& aIconURI, int64_t aSession,
-    int64_t aVisitId, int64_t aReferringVisitId, int32_t aTransitionType);
-
-  NS_DECL_ISUPPORTS_INHERITED
-  NS_FORWARD_COMMON_RESULTNODE_TO_BASE
-  NS_IMETHOD GetType(uint32_t* type)
-    { *type = nsNavHistoryResultNode::RESULT_TYPE_FULL_VISIT; return NS_OK; }
-  NS_IMPLEMENT_FULLVISITRESULT
-
-public:
-  int64_t mVisitId;
-  int64_t mReferringVisitId;
-  int32_t mTransitionType;
-};
-
-
 // nsNavHistoryContainerResultNode
 //
 //    This is the base class for all nodes that can have children. It is
 //    overridden for nodes that are dynamically populated such as queries and
 //    folders. It is used directly for simple containers such as host groups
 //    in history views.
 
 // derived classes each provide their own implementation of has children and