Skip to content

Commit

Permalink
Merge pull request #10 from egbertbouman/anontunnel
Browse files Browse the repository at this point in the history
Delete vertex_max stuff
  • Loading branch information
Devristo committed Apr 11, 2014
2 parents 4180cd0 + b3a3e43 commit 1b468ae
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Tribler/Main/vwxGUI/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,6 @@ def __init__(self, parent):

self.selected_edges = []

self.vertex_max = 100
self.vertex_active = -1
self.vertex_hover = -1
self.vertex_hover_evt = None
Expand Down Expand Up @@ -1075,8 +1074,6 @@ def CountNeighbors(self):

def RemoveVertex(self, toremove_id):
with self.lock:

# Remove the vertex with the fewest neighbors.
if toremove_id in self.vertices:
self.vertices.pop(toremove_id)
if toremove_id in self.vertex_to_colour:
Expand Down Expand Up @@ -1151,10 +1148,6 @@ def OnPaint(self, event):
self.new_data = False
self.layout_busy = True

elif len(self.vertices) > self.vertex_max:
task = lambda: self.RemoveVertex()
self.taskqueue.add_task(task)

if len(self.vertices) > 0:

int_points = {}
Expand Down

0 comments on commit 1b468ae

Please sign in to comment.