Removed flushes

This commit is contained in:
FlightControl
2016-07-19 18:18:49 +02:00
parent d5671a5f65
commit 9b15ec1988
38 changed files with 2 additions and 23 deletions

View File

@@ -770,7 +770,6 @@ function DETECTION_AREAS:CreateDetectionSets()
if DetectedArea then
local DetectedSet = DetectedArea.Set
DetectedSet:Flush()
local AreaExists = false -- This flag will determine of the detected area is still existing.

View File

@@ -339,8 +339,6 @@ function SET_BASE:Remove( ObjectName )
self.Set[ObjectName] = nil
end
self:Flush()
end
--- Retrieves the amount of objects in the @{Set#SET_BASE} and derived classes.
@@ -499,7 +497,6 @@ function SET_BASE:_EventOnBirth( Event )
self:T3( ObjectName, Object )
if self:IsIncludeObject( Object ) then
self:Add( ObjectName, Object )
self:Flush()
--self:_EventOnPlayerEnterUnit( Event )
end
end
@@ -510,7 +507,6 @@ end
-- @param Event#EVENTDATA Event
function SET_BASE:_EventOnDeadOrCrash( Event )
self:E( { Event } )
self:Flush()
if Event.IniDCSUnit then
local ObjectName, Object = self:FindInDatabase( Event )
@@ -1378,8 +1374,6 @@ function SET_UNIT:GetUnitTypesText()
local MT = {} -- Message Text
local UnitTypes = {}
self:Flush()
for UnitID, UnitData in pairs( self:GetSet() ) do
local TextUnit = UnitData -- Unit#UNIT
if TextUnit:IsAlive() then