зеркало из https://github.com/microsoft/clang-1.git
remove a dead list.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65127 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
54fefbe993
Коммит
4a323d94e5
|
@ -575,10 +575,6 @@ class ObjCProtocolDecl : public ObjCContainerDecl {
|
|||
/// Referenced protocols
|
||||
ObjCList<ObjCProtocolDecl> ReferencedProtocols;
|
||||
|
||||
/// protocol properties
|
||||
ObjCPropertyDecl **PropertyDecl; // Null if no property
|
||||
unsigned NumPropertyDecl; // 0 if none
|
||||
|
||||
bool isForwardProtoDecl; // declared with @protocol.
|
||||
|
||||
SourceLocation EndLoc; // marks the '>' or identifier.
|
||||
|
@ -586,13 +582,10 @@ class ObjCProtocolDecl : public ObjCContainerDecl {
|
|||
|
||||
ObjCProtocolDecl(DeclContext *DC, SourceLocation L, IdentifierInfo *Id)
|
||||
: ObjCContainerDecl(ObjCProtocol, DC, L, Id),
|
||||
PropertyDecl(0), NumPropertyDecl(0),
|
||||
isForwardProtoDecl(true) {
|
||||
}
|
||||
|
||||
virtual ~ObjCProtocolDecl() {
|
||||
assert(PropertyDecl == 0 && "Destroy not called?");
|
||||
}
|
||||
virtual ~ObjCProtocolDecl() {}
|
||||
|
||||
public:
|
||||
static ObjCProtocolDecl *Create(ASTContext &C, DeclContext *DC,
|
||||
|
|
|
@ -106,8 +106,7 @@ ObjCProtocolDecl *ObjCProtocolDecl::Create(ASTContext &C, DeclContext *DC,
|
|||
}
|
||||
|
||||
void ObjCProtocolDecl::Destroy(ASTContext &C) {
|
||||
delete [] PropertyDecl;
|
||||
PropertyDecl = 0;
|
||||
ReferencedProtocols.clear();
|
||||
ObjCContainerDecl::Destroy(C);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче