diff --git a/wtss_plugin/controller/wtss_qgis_controller.py b/wtss_plugin/controller/wtss_qgis_controller.py index a732aa2..7dbef92 100644 --- a/wtss_plugin/controller/wtss_qgis_controller.py +++ b/wtss_plugin/controller/wtss_qgis_controller.py @@ -18,12 +18,8 @@ """Python QGIS Plugin for WTSS.""" -import datetime - -import requests from pyproj import CRS, Proj, transform from PyQt5.QtCore import QDate -from PyQt5.QtGui import QStandardItem from PyQt5.QtWidgets import QInputDialog, QLineEdit, QMessageBox from wtss import * @@ -35,7 +31,6 @@ class Controls: :methods: alert - addItemsTreeView formatForQDate transformProjection """ @@ -71,18 +66,6 @@ def dialogBox(self, mainDialog, title, text): else: return "" - def addItemsTreeView(self, parent, elements): - """Create a data struct based on QGIS Tree View. - - :param parent: the parent node of data struct. - :param elements: list of items in array of tuples. - """ - for text, children in elements: - item = QStandardItem(text) - parent.appendRow(item) - if children: - self.addItemsTreeView(item, children) - def formatForQDate(self, date_string): """Return a QDate format.