]> granicus.if.org Git - clang/commitdiff
Remove a bunch of unused constructors
authorAnders Carlsson <andersca@mac.com>
Tue, 26 May 2009 01:04:47 +0000 (01:04 +0000)
committerAnders Carlsson <andersca@mac.com>
Tue, 26 May 2009 01:04:47 +0000 (01:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72407 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Expr.h
include/clang/AST/ExprObjC.h
include/clang/AST/StmtObjC.h

index 79cd510f21949df2694d4354e1c4d7d25878ac25..494729cb659a94652f4be88cd3b44cd17c5df0d0 100644 (file)
@@ -945,12 +945,6 @@ class CallExpr : public Expr {
   unsigned NumArgs;
   SourceLocation RParenLoc;
   
-  // This version of the ctor is for deserialization.
-  CallExpr(StmtClass SC, Stmt** subexprs, unsigned numargs, QualType t, 
-           SourceLocation rparenloc)
-  : Expr(SC,t), SubExprs(subexprs), 
-    NumArgs(numargs), RParenLoc(rparenloc) {}
-
 protected:
   // This version of the constructor is for derived classes.
   CallExpr(ASTContext& C, StmtClass SC, Expr *fn, Expr **args, unsigned numargs,
index 60a57b471c05e4f595239a261c6312353179db70..51b99610cd9d166db2d66e4b01959648f9bdacf1 100644 (file)
@@ -344,14 +344,6 @@ class ObjCMessageExpr : public Expr {
   enum { IsInstMeth=0, IsClsMethDeclUnknown, IsClsMethDeclKnown, Flags=0x3 };
   unsigned getFlag() const { return (uintptr_t) SubExprs[RECEIVER] & Flags; }
   
-  // constructor used during deserialization
-  ObjCMessageExpr(Selector selInfo, QualType retType,
-                  SourceLocation LBrac, SourceLocation RBrac,
-                  Stmt **subexprs, unsigned nargs)
-  : Expr(ObjCMessageExprClass, retType), SubExprs(subexprs),
-    NumArgs(nargs), SelName(selInfo), MethodProto(NULL),
-    LBracloc(LBrac), RBracloc(RBrac) {}
-  
 public:
   /// This constructor is used to represent class messages where the
   /// ObjCInterfaceDecl* of the receiver is not known.
index fa335bb1c225da4863df42240e86c08e37bb83a0..8ae707174403aefe4abf6a27eb4744838c7eeeab 100644 (file)
@@ -76,10 +76,6 @@ private:
   Stmt *SubExprs[END_EXPR];
   SourceLocation AtCatchLoc, RParenLoc;
 
-  // Used by deserialization.
-  ObjCAtCatchStmt(SourceLocation atCatchLoc, SourceLocation rparenloc)
-  : Stmt(ObjCAtCatchStmtClass), AtCatchLoc(atCatchLoc), RParenLoc(rparenloc) {}
-
 public:
   ObjCAtCatchStmt(SourceLocation atCatchLoc, SourceLocation rparenloc,
                   ParmVarDecl *catchVarDecl,