[meld] filters: Remove unused parse method
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] filters: Remove unused parse method
- Date: Sat, 27 Oct 2018 22:06:49 +0000 (UTC)
commit be66b1103fde9e1bea6801f43136f195a763de0f
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Oct 28 06:37:58 2018 +1000
filters: Remove unused parse method
This was used for the old gconf serialisation before we moved to
gsettings.
meld/filters.py | 13 -------------
1 file changed, 13 deletions(-)
---
diff --git a/meld/filters.py b/meld/filters.py
index 06f0564e..ab69b17d 100644
--- a/meld/filters.py
+++ b/meld/filters.py
@@ -71,19 +71,6 @@ class FilterEntry:
return compiled
- @classmethod
- def parse(cls, string, filter_type):
- elements = string.split("\t")
- if len(elements) < 3:
- return None
- name, active = elements[0], bool(int(elements[1]))
- filter_string = " ".join(elements[2:])
- compiled = FilterEntry.compile_filter(filter_string, filter_type)
- if compiled is None:
- active = False
- byte_filt = FilterEntry.compile_byte_filter(filter_string, filter_type)
- return FilterEntry(name, active, compiled, byte_filt, filter_string)
-
@classmethod
def new_from_gsetting(cls, elements, filter_type):
name, active, filter_string = elements
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]