From b7e69b06b52d84c22cbe414bbb3593445303507e Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Tue, 26 May 2009 01:04:47 +0000 Subject: [PATCH] Remove a bunch of unused constructors llvm-svn: 72407 --- clang/include/clang/AST/Expr.h | 6 ------ clang/include/clang/AST/ExprObjC.h | 8 -------- clang/include/clang/AST/StmtObjC.h | 4 ---- 3 files changed, 18 deletions(-) diff --git a/clang/include/clang/AST/Expr.h b/clang/include/clang/AST/Expr.h index 79cd510f2194..494729cb659a 100644 --- a/clang/include/clang/AST/Expr.h +++ b/clang/include/clang/AST/Expr.h @@ -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, diff --git a/clang/include/clang/AST/ExprObjC.h b/clang/include/clang/AST/ExprObjC.h index 60a57b471c05..51b99610cd9d 100644 --- a/clang/include/clang/AST/ExprObjC.h +++ b/clang/include/clang/AST/ExprObjC.h @@ -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. diff --git a/clang/include/clang/AST/StmtObjC.h b/clang/include/clang/AST/StmtObjC.h index fa335bb1c225..8ae707174403 100644 --- a/clang/include/clang/AST/StmtObjC.h +++ b/clang/include/clang/AST/StmtObjC.h @@ -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,