remove obsolete method

This commit is contained in:
2022-12-01 17:55:39 +01:00
parent e8f9e140fd
commit 5df0dc0c82

View File

@@ -145,12 +145,6 @@ class LogFileModel:
self._file_size = size self._file_size = size
return size return size
def write_line(self, line: str):
with open(self._file, 'a+b') as f:
f.write(line.encode("utf8"))
if not line.endswith("\n"):
f.write("\n".encode("utf8"))
def truncate(self): def truncate(self):
with open(self._file, 'a') as f: with open(self._file, 'a') as f:
f.truncate(0) f.truncate(0)