mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-15 00:30:33 +03:00
EDDN: Remove EDDN->flush()
This commit is contained in:
parent
09f646a249
commit
c1793ad839
@ -316,19 +316,6 @@ class EDDN:
|
||||
|
||||
self.fss_signals: List[Mapping[str, Any]] = []
|
||||
|
||||
def flush(self):
|
||||
"""Flush the replay file, clearing any data currently there that is not in the replaylog list."""
|
||||
if self.replayfile is None:
|
||||
logger.error('replayfile is None!')
|
||||
return
|
||||
|
||||
self.replayfile.seek(0, SEEK_SET)
|
||||
self.replayfile.truncate()
|
||||
for line in self.replaylog:
|
||||
self.replayfile.write(f'{line}\n')
|
||||
|
||||
self.replayfile.flush()
|
||||
|
||||
def close(self):
|
||||
"""Close down the EDDN class instance."""
|
||||
logger.debug('Closing replayfile...')
|
||||
|
Loading…
x
Reference in New Issue
Block a user