From cad84d9dfb674b3215d73bde4d65b5b4e42f322d Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Tue, 18 Oct 2022 18:24:34 +1000 Subject: [PATCH] Coding style - Removed dead code. --- termstr/termstr.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/termstr/termstr.py b/termstr/termstr.py index 4e868bd..2e402a7 100644 --- a/termstr/termstr.py +++ b/termstr/termstr.py @@ -108,15 +108,6 @@ class CharStyle: def __getnewargs__(self): return self.fg_color, self.bg_color, self.is_bold, self.is_italic, self.is_underlined - def __getstate__(self): - state = self.__dict__.copy() - if "_cache" in state: - del state["_cache"] - return state - - def __setstate__(self, state): - self.__dict__ = state - def __repr__(self): attributes = [] if self.is_bold: