summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2007-10-06 13:32:00 +0200
committerGuillaume Seguin <guillaume@segu.in>2007-10-06 13:32:00 +0200
commit8a21c3f7a3340998177f0689499dbd929df0f2bb (patch)
tree6fd8e558609660cce4d1933aac9c49526daa0f00
parent782ae1a1aa1f6b49a65a0ad24c50b8243b76d4e2 (diff)
downloadgol-8a21c3f7a3340998177f0689499dbd929df0f2bb.tar.gz
gol-8a21c3f7a3340998177f0689499dbd929df0f2bb.tar.bz2
* Drop useless code
-rwxr-xr-xjdlv.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/jdlv.py b/jdlv.py
index 202e03c..bc83d5e 100755
--- a/jdlv.py
+++ b/jdlv.py
@@ -121,10 +121,6 @@ class gtkGameOfLife (gtk.DrawingArea):
def surrounding (self, i, j):
'''Counts the surrounding alive points around point (i, j)'''
surrounding = 0
- iplusone = (i + 1) % self._size
- jplusone = (j + 1) % self._size
- iminusone = (i - 1 + self._size) % self._size
- jminusone = (j - 1 + self._size) % self._size
for x in range (-1, 2):
i2 = (i + x + self._size) % self._size
for y in range (-1, 2):