Remove obsolete function no longer used
This commit is contained in:
@@ -977,57 +977,6 @@ def put_pid_function(MyDriver, func):
|
||||
txt += ['}']
|
||||
emit(txt)
|
||||
|
||||
def get_one_var(group_name, MyVar):
|
||||
lst = [ group_name ]
|
||||
lst.append(MyVar['name'])
|
||||
if 'readable' in MyVar:
|
||||
lst.append(str(MyVar['readable']))
|
||||
else:
|
||||
lst.append('0')
|
||||
if 'writeable' in MyVar:
|
||||
lst.append(str(MyVar['writeable']))
|
||||
else:
|
||||
lst.append('0')
|
||||
if 'driveable' in MyVar:
|
||||
lst.append(str(MyVar['driveable']))
|
||||
else:
|
||||
lst.append('0')
|
||||
if 'type' in MyVar:
|
||||
lst.append(MyVar['type'])
|
||||
else:
|
||||
lst.append('text')
|
||||
if 'priv' in MyVar:
|
||||
lst.append(MyVar['priv'])
|
||||
else:
|
||||
lst.append('user')
|
||||
if 'read_command' in MyVar:
|
||||
lst.append('{' + MyVar['read_command'] + '}')
|
||||
else:
|
||||
lst.append('{}')
|
||||
if 'read_function' in MyVar:
|
||||
if not MyVar['fetch_function'] == 'none':
|
||||
lst.append('{' + MyVar['fetch_function'] + '.' + MyVar['read_function'] + '}')
|
||||
else:
|
||||
lst.append('{' + MyVar['read_function'] + '}')
|
||||
else:
|
||||
lst.append('{}')
|
||||
if 'write_command' in MyVar:
|
||||
lst.append('{' + MyVar['write_command'] + '}')
|
||||
else:
|
||||
lst.append('{}')
|
||||
if 'write_function' in MyVar:
|
||||
if not MyVar['check_function'] == 'none':
|
||||
lst.append('{' + MyVar['check_function'] + '.' + MyVar['write_function'] + '}')
|
||||
else:
|
||||
lst.append('{' + MyVar['write_function'] + '}')
|
||||
else:
|
||||
lst.append('{}')
|
||||
if 'allowed' in MyVar:
|
||||
lst.append('{' + MyVar['allowed'] + '}')
|
||||
else:
|
||||
lst.append('{}')
|
||||
return lst
|
||||
|
||||
def put_group(MyDriver, MyGroup):
|
||||
readable_or_writeable = False
|
||||
txt = []
|
||||
|
||||
Reference in New Issue
Block a user