Skip to content

Commit

Permalink
libcore: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent 697b9f9 commit b014b42
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 4 additions & 4 deletions doomsday/libs/core/include/de/data/observers.h
Expand Up @@ -61,16 +61,16 @@
DE_PUBLIC extern Name##Audience audienceFor##Name;

#define DE_DECLARE_AUDIENCE_METHOD(Name) \
typedef de::Observers<DE_AUDIENCE_INTERFACE(Name)> Name##Audience; \
using Name##Audience = de::Observers<DE_AUDIENCE_INTERFACE(Name)>; \
Name##Audience &audienceFor##Name(); \
Name##Audience const &audienceFor##Name() const;
const Name##Audience &audienceFor##Name() const;

#define DE_AUDIENCE_METHOD(ClassName, Name) \
ClassName::Name##Audience &ClassName::audienceFor##Name() { return d->audienceFor##Name; } \
ClassName::Name##Audience const &ClassName::audienceFor##Name() const { return d->audienceFor##Name; }
const ClassName::Name##Audience &ClassName::audienceFor##Name() const { return d->audienceFor##Name; }

#define DE_AUDIENCE_METHOD_INLINE(Name) \
typedef de::Observers<DE_AUDIENCE_INTERFACE(Name)> Name##Audience; \
using Name##Audience = de::Observers<DE_AUDIENCE_INTERFACE(Name)>; \
Name##Audience _audienceFor##Name; \
Name##Audience &audienceFor##Name() { return _audienceFor##Name; } \
Name##Audience const &audienceFor##Name() const { return _audienceFor##Name; }
Expand Down
2 changes: 0 additions & 2 deletions doomsday/libs/core/src/core/app.cpp
Expand Up @@ -168,8 +168,6 @@ DE_PIMPL(App)

#ifdef UNIX
{
// We wish to use U.S. English formatting for time and numbers (in libc).
setlocale(LC_ALL, "en_US.UTF-8");
setlocale(LC_NUMERIC, "C");
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion doomsday/libs/gloom/src/render/maprender.cpp
Expand Up @@ -242,7 +242,7 @@ void MapRender::advanceTime(TimeSpan elapsed)
{
d->visibleTransparents.clear();

const Vec3d eye = context().view.camera->cameraPosition();
// const Vec3d eye = context().view.camera->cameraPosition();

d->visibleTransparents = d->builtMap.transparentRanges;
}
Expand Down

0 comments on commit b014b42

Please sign in to comment.