Skip to content

Commit

Permalink
Remove MODULEINFO_IS_STRUCT
Browse files Browse the repository at this point in the history
  • Loading branch information
yebblies committed Dec 27, 2013
1 parent c8b9378 commit 30a34a0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions src/class.c
Expand Up @@ -207,11 +207,6 @@ ClassDeclaration::ClassDeclaration(Loc loc, Identifier *id, BaseClasses *basecla
error("%s", msg);
errorException = this;
}

#if !MODULEINFO_IS_STRUCT
if (id == Id::ModuleInfo && !Module::moduleinfo)
Module::moduleinfo = this;
#endif
}

com = 0;
Expand Down
1 change: 0 additions & 1 deletion src/mars.h
Expand Up @@ -74,7 +74,6 @@ void unittests();

#define DMDV1 0
#define DMDV2 1 // Version 2.0 features
#define MODULEINFO_IS_STRUCT 1 // if ModuleInfo is a struct rather than a class
#define PULL93 0 // controversial pull #93 for bugzilla 3449

// Set if C++ mangling is done by the front end
Expand Down
2 changes: 0 additions & 2 deletions src/struct.c
Expand Up @@ -566,10 +566,8 @@ StructDeclaration::StructDeclaration(Loc loc, Identifier *id)
// For forward references
type = new TypeStruct(this);

#if MODULEINFO_IS_STRUCT
if (id == Id::ModuleInfo && !Module::moduleinfo)
Module::moduleinfo = this;
#endif
}

Dsymbol *StructDeclaration::syntaxCopy(Dsymbol *s)
Expand Down

0 comments on commit 30a34a0

Please sign in to comment.