Kaydet (Commit) ae4d40f3 authored tarafından Xisco Fauli's avatar Xisco Fauli

pyagenda: i have to redo this class so this method is unused now

Change-Id: Ief3461be5eeb6b952b76eeacf2778cb5beef6826
üst acee06b2
......@@ -32,30 +32,7 @@ class ConfigSet(ConfigGroup):
def __init__(self, topic):
self.topic = topic
self.childrenMap = {}
self.childrenList = []
self.noNulls = False
def add2(self, name, o):
self.childrenMap[name] = o
if isinstance(name, int):
i = name
self.childrenList.insert(i, o)
else:
try:
i = o.cp_Index
oldSize = self.getSize()
if oldSize <= i:
newSize = i - oldSize
self.childrenList += [None] * newSize
self.noNulls = True
else:
self.noNulls = False
self.childrenList.insert(i, o);
if oldSize > i:
oldSize = i
except Exception:
self.childrenList.append(o)
def add(self, name, o):
self.childrenList.append(o)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment