Skip to content

Commit

Permalink
Remove nonworking phone_home functionality.
Browse files Browse the repository at this point in the history
Nice, but would need a total remake of it for ete4, including from
the server side.
  • Loading branch information
jordibc committed Feb 8, 2024
1 parent 24197b7 commit 8c7b3cc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 128 deletions.
97 changes: 0 additions & 97 deletions ete4/_ph.py

This file was deleted.

4 changes: 0 additions & 4 deletions ete4/core/tree.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2009,7 +2009,3 @@ cdef class Tree(object):
ete_node.add_child(ete_ch)
all_nodes[ch] = ete_ch
return ete_ch.root

def phonehome(self):
from .. import _ph
_ph.call()
27 changes: 0 additions & 27 deletions ete4/treeview/qt_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
from ..utils import random_color
from .qt_render import render
from .node_gui_actions import NewickDialog
try:
from .._ph import new_version
except Exception:
pass


class _SelectorItem(QGraphicsRectItem):
Expand Down Expand Up @@ -59,24 +55,6 @@ def a_wrapper_accepting_arguments(*args, **kargs):
print(time.time() - t1)
return a_wrapper_accepting_arguments

class CheckUpdates(QThread):
def run(self):
try:
current, latest, tag = new_version()
if tag is None:
tag = ""
msg = ""
if current and latest:
if current < latest:
msg = "New version available (rev%s): %s More info at http://etetoolkit.org." %\
(latest, tag)
elif current == latest:
msg = "Up to date"

self.emit(SIGNAL("output(QString)"), msg)
except Exception:
pass

class _GUI(QMainWindow):
def _updatestatus(self, msg):
self.main.statusbar.showMessage(msg)
Expand Down Expand Up @@ -128,11 +106,6 @@ def __init__(self, scene, *args):

self.view.fitInView(0, 0, self.scene.sceneRect().width(), 200, Qt.AspectRatioMode.KeepAspectRatio)

# Check for updates
self.check = CheckUpdates()
#self.check.start()
#self.connect(self.check, SIGNAL("output(QString)"), self._updatestatus)

@QtCore.pyqtSlot()
def on_actionETE_triggered(self):
try:
Expand Down

0 comments on commit 8c7b3cc

Please sign in to comment.