Skip to content

Commit

Permalink
Remove now-useless constructor generation macros.
Browse files Browse the repository at this point in the history
These macros prevent the normal operation of the implicit constructor
mechanism, which we now rely on for initialization of our globals.
  • Loading branch information
David Anderson committed Nov 17, 2008
1 parent 79daad0 commit c5a991d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions base/cpp_decls.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@
#ifndef __NXOS_BASE_CPP_DECLS_H__
#define __NXOS_BASE_CPP_DECLS_H__

#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
TypeName(const TypeName&); \
void operator=(const TypeName&)

#define DISALLOW_CONSTRUCTION(TypeName) \
TypeName(); \
DISALLOW_COPY_AND_ASSIGN(TypeName)

#define UNUSED __attribute__((unused))

#endif // __NXOS_BASE_CPP_DECLS_H__

0 comments on commit c5a991d

Please sign in to comment.