Remove obsolete function no longer used

This commit is contained in:
Douglas Clowes
2014-03-18 10:17:29 +11:00
parent ad06ef1711
commit 7269776484

View File

@@ -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 = []