diff options
author | Tim Newsome <tim@sifive.com> | 2017-09-22 12:57:51 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2017-09-22 12:57:51 -0700 |
commit | b9957ef9690dc83c684e113294b068fe676b468a (patch) | |
tree | af4b41a6485e5bfc3f95a81c22d5dfc11bd3086a /debug/testlib.py | |
parent | 35c41f1391b51d4d9c4e0ab40fdfc45dbea346b2 (diff) | |
download | riscv-tests-b9957ef9690dc83c684e113294b068fe676b468a.zip riscv-tests-b9957ef9690dc83c684e113294b068fe676b468a.tar.gz riscv-tests-b9957ef9690dc83c684e113294b068fe676b468a.tar.bz2 |
Remove unused function.
Diffstat (limited to 'debug/testlib.py')
-rw-r--r-- | debug/testlib.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/debug/testlib.py b/debug/testlib.py index 996c188..0bdb433 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -50,15 +50,6 @@ def compile(args, xlen=32): # pylint: disable=redefined-builtin header("") raise Exception("Compile failed!") -def unused_port(): - # http://stackoverflow.com/questions/2838244/get-open-tcp-port-in-python/2838309#2838309 - import socket - s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - s.bind(("", 0)) - port = s.getsockname()[1] - s.close() - return port - class Spike(object): logname = "spike-%d.log" % os.getpid() |