Remove unused ASTContext& arg in RawCommentList::addComment, as pointed out by Chandler in commit message for r158807.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158845 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h
index cc2d987..a367878 100644
--- a/include/clang/AST/ASTContext.h
+++ b/include/clang/AST/ASTContext.h
@@ -435,7 +435,7 @@
 
 public:
   void addComment(const RawComment &RC) {
-    Comments.addComment(RC, *this);
+    Comments.addComment(RC);
   }
 
   /// \brief Return the Doxygen-style comment attached to a given declaration.
diff --git a/include/clang/AST/RawCommentList.h b/include/clang/AST/RawCommentList.h
index bf0b616..666a3e6 100644
--- a/include/clang/AST/RawCommentList.h
+++ b/include/clang/AST/RawCommentList.h
@@ -15,7 +15,6 @@
 
 namespace clang {
 
-class ASTContext;
 class ASTReader;
 
 class RawComment {
@@ -143,7 +142,7 @@
   RawCommentList(SourceManager &SourceMgr) :
     SourceMgr(SourceMgr), OnlyWhitespaceSeen(true) { }
 
-  void addComment(const RawComment &RC, ASTContext &Context);
+  void addComment(const RawComment &RC);
 
   ArrayRef<RawComment> getComments() const {
     return Comments;
diff --git a/lib/AST/RawCommentList.cpp b/lib/AST/RawCommentList.cpp
index 0777677..0651029 100644
--- a/lib/AST/RawCommentList.cpp
+++ b/lib/AST/RawCommentList.cpp
@@ -8,7 +8,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "clang/AST/RawCommentList.h"
-#include "clang/AST/ASTContext.h"
 #include "llvm/ADT/STLExtras.h"
 
 using namespace clang;
@@ -155,7 +154,7 @@
 }
 } // unnamed namespace
 
-void RawCommentList::addComment(const RawComment &RC, ASTContext &Context) {
+void RawCommentList::addComment(const RawComment &RC) {
   if (RC.isInvalid())
     return;