changeset 1312:878eeda73dab

removed unused imports
author Martin Geisler <mg@cs.au.dk>
date Mon, 19 Oct 2009 17:48:11 +0200
parents b428f2b066c5
children 81be1830f33e
files apps/benchmark.py viff/hash_broadcast.py viff/orlandi.py viff/test/test_hash_broadcast.py viff/test/test_orlandi_runtime.py
diffstat 5 files changed, 5 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/apps/benchmark.py	Mon Oct 19 17:21:03 2009 +0200
+++ b/apps/benchmark.py	Mon Oct 19 17:48:11 2009 +0200
@@ -57,7 +57,6 @@
 import time
 from math import log
 from optparse import OptionParser
-import operator
 
 import viff.reactor
 viff.reactor.install()
--- a/viff/hash_broadcast.py	Mon Oct 19 17:21:03 2009 +0200
+++ b/viff/hash_broadcast.py	Mon Oct 19 17:48:11 2009 +0200
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU Lesser General Public
 # License along with VIFF. If not, see <http://www.gnu.org/licenses/>.
 
-from twisted.internet.defer import gatherResults, Deferred, DeferredList
+from twisted.internet.defer import Deferred
 
 try:
     from hashlib import sha1
--- a/viff/orlandi.py	Mon Oct 19 17:21:03 2009 +0200
+++ b/viff/orlandi.py	Mon Oct 19 17:48:11 2009 +0200
@@ -15,7 +15,7 @@
 # You should have received a copy of the GNU Lesser General Public
 # License along with VIFF. If not, see <http://www.gnu.org/licenses/>.
 
-from twisted.internet.defer import Deferred, DeferredList, gatherResults
+from twisted.internet.defer import Deferred, gatherResults
 
 from viff.runtime import Runtime, Share, ShareList, gather_shares, preprocess
 from viff.util import rand
--- a/viff/test/test_hash_broadcast.py	Mon Oct 19 17:21:03 2009 +0200
+++ b/viff/test/test_hash_broadcast.py	Mon Oct 19 17:48:11 2009 +0200
@@ -15,11 +15,10 @@
 # You should have received a copy of the GNU Lesser General Public
 # License along with VIFF. If not, see <http://www.gnu.org/licenses/>.
 
-from twisted.internet.defer import gatherResults, Deferred, DeferredList
+from twisted.internet.defer import Deferred, DeferredList
 
 from viff.test.util import RuntimeTestCase, protocol
 from viff.field import GF
-from viff.runtime import Share
 
 from viff.comparison import Toft05Runtime
 from viff.hash_broadcast import HashBroadcastMixin
--- a/viff/test/test_orlandi_runtime.py	Mon Oct 19 17:21:03 2009 +0200
+++ b/viff/test/test_orlandi_runtime.py	Mon Oct 19 17:48:11 2009 +0200
@@ -17,8 +17,8 @@
 
 from twisted.internet.defer import gatherResults, DeferredList
 
-from viff.test.util import RuntimeTestCase, protocol, BinaryOperatorTestCase
-from viff.runtime import Share, gather_shares
+from viff.test.util import RuntimeTestCase, protocol
+from viff.runtime import gather_shares
 try:
     from viff.orlandi import OrlandiRuntime, OrlandiShare
     import commitment
@@ -28,7 +28,6 @@
     OrlandiShare = None
 
 from viff.field import FieldElement, GF
-from viff.passive import PassiveRuntime
 
 from viff.util import rand