- removed MarkACSThinker.

The global variable holding a pointer to this thinker should be a weak reference to the instance in the thinker chain, there is no need to mark this global variable, as the thinker's lifetime is only determined by the thinker chain.

- committed a few Posix related file the last commit missed.
This commit is contained in:
Christoph Oelckers 2017-04-14 10:59:57 +02:00
parent dc5a5419fc
commit 929affa3cb
5 changed files with 0 additions and 12 deletions

View file

@ -79,8 +79,6 @@
#include "g_levellocals.h"
#include "events.h"
void MarkACSThinker();
// MACROS ------------------------------------------------------------------
/*
@ -331,7 +329,6 @@ static void MarkRoot()
Mark(DIntermissionController::CurrentIntermission);
DThinker::MarkRoots();
FCanvasTextureInfo::Mark();
MarkACSThinker();
Mark(E_FirstEventHandler);
Mark(E_LastEventHandler);
for (auto &s : level.sectorPortals)

View file

@ -242,7 +242,6 @@ void PClass::StaticShutdown ()
{
if (WP_NOCHANGE != nullptr)
{
WP_NOCHANGE->ObjectFlags |= OF_YesReallyDelete;
delete WP_NOCHANGE;
}

View file

@ -11022,11 +11022,6 @@ CCMD(acsprofile)
ShowProfileData(FuncProfiles, limit, sorter, true);
}
void MarkACSThinker()
{
GC::Mark(DACSThinker::ActiveThinker);
}
ADD_STAT(ACS)
{
return FStringf("ACS time: %f ms", ACSTime.TimeMS());

View file

@ -632,7 +632,6 @@ DFrameBuffer* CocoaVideo::CreateFrameBuffer(const int width, const int height, c
}
old->GetFlash(flashColor, flashAmount);
old->ObjectFlags |= OF_YesReallyDelete;
if (old == screen)
{
@ -1306,7 +1305,6 @@ void I_ShutdownGraphics()
{
if (NULL != screen)
{
screen->ObjectFlags |= OF_YesReallyDelete;
delete screen;
screen = NULL;
}

View file

@ -95,7 +95,6 @@ void I_ShutdownGraphics ()
{
DFrameBuffer *s = screen;
screen = NULL;
s->ObjectFlags |= OF_YesReallyDelete;
delete s;
}
if (Video)