From 1de480dc37b24c75441724a99bc0b265347afb16 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Fri, 15 Oct 2021 12:12:03 -0400 Subject: [PATCH] Stop offering an API to create a control tub or handling the control tub --- src/allmydata/node.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/allmydata/node.py b/src/allmydata/node.py index 5a6f8c66f..08271fc5f 100644 --- a/src/allmydata/node.py +++ b/src/allmydata/node.py @@ -919,18 +919,6 @@ def create_main_tub(config, tub_options, return tub -def create_control_tub(): - """ - Creates a Foolscap Tub for use by the control port. This is a - localhost-only ephemeral Tub, with no control over the listening - port or location - """ - control_tub = Tub() - portnum = iputil.listenOnUnused(control_tub) - log.msg("Control Tub location set to 127.0.0.1:%s" % (portnum,)) - return control_tub - - class Node(service.MultiService): """ This class implements common functionality of both Client nodes and Introducer nodes. @@ -967,10 +955,6 @@ class Node(service.MultiService): else: self.nodeid = self.short_nodeid = None - self.control_tub = control_tub - if self.control_tub is not None: - self.control_tub.setServiceParent(self) - self.log("Node constructed. " + __full_version__) iputil.increase_rlimits()