1
0
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:
Athanasius 2022-09-29 17:01:50 +01:00 committed by Athanasius
parent 09f646a249
commit c1793ad839
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -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...')