Skip to content

Commit 2b24b80

Browse files
committed
Remove CachedCTFs property and setter
1 parent 37440c8 commit 2b24b80

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

pace_neutrons_cli/utils.py

-19
Original file line numberDiff line numberDiff line change
@@ -125,25 +125,6 @@ def IsFirstRun(self):
125125
def IsFirstRun(self, val):
126126
self.config['pace']['IsFirstRun'] = str(val)
127127

128-
@property
129-
def CachedCTFs(self):
130-
try:
131-
retval = self.config['pace']['CachedCTFs'].split(';')
132-
except KeyError:
133-
retval = []
134-
return [val for val in retval if val]
135-
136-
@CachedCTFs.setter
137-
def CachedCTFs(self, val):
138-
try:
139-
val = str(val)
140-
except:
141-
raise RuntimeError('Cached CTF must be convertible to a string')
142-
cached = self.CachedCTFs
143-
if not any(d for d in cached if val in d):
144-
cached += [val]
145-
self.config['pace']['CachedCTFs'] = ';'.join(cached)
146-
147128
def save(self):
148129
with open(self.config_file, 'w') as f:
149130
self.config.write(f)

0 commit comments

Comments
 (0)