Skip to content

Commit 057758c

Browse files
committed
Remove commented out code.
1 parent 32eeb80 commit 057758c

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

arho_feature_template/plugin.py

-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
from arho_feature_template.qgis_plugin_tools.tools.custom_logging import setup_logger, teardown_logger
1414
from arho_feature_template.qgis_plugin_tools.tools.i18n import setup_translation
1515
from arho_feature_template.qgis_plugin_tools.tools.resources import plugin_name
16-
17-
# from arho_feature_template.utils.misc_utils import get_lambda_address, get_lambda_settings
1816
from arho_feature_template.utils.misc_utils import get_active_plan_id, get_lambda_settings
1917

2018
if TYPE_CHECKING:
@@ -205,8 +203,6 @@ def validate_plan(self):
205203
"Lambda asetukset",
206204
f"Lambdan isäntä: {lambda_host}\nLambdan portti: {lambda_port}\nAktiivinen kaava: {active_plan}",
207205
)
208-
# print(f"Hard Coded Lambda Host: {hc_lambda_host}")
209-
# print(f"Hard Coded Lambda Port: {hc_lambda_port}")
210206

211207
def open_settings(self):
212208
"""Open the plugin settings dialog."""

arho_feature_template/utils/misc_utils.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
from qgis.PyQt.QtWidgets import QMessageBox
66

77
PLUGIN_PATH = os.path.dirname(os.path.dirname(__file__))
8-
# LAMBDA_HOST = "localhost"
9-
# LAMBDA_PORT = 5435
108

119

1210
def check_layer_changes() -> bool:
@@ -62,18 +60,12 @@ def handle_unsaved_changes() -> bool:
6260

6361
def get_active_plan_id():
6462
"""Retrieve the active plan ID stored as a project variable."""
65-
# return QgsExpressionContextUtils.projectScope(QgsProject.instance(), "active_plan_id")
6663
return QgsExpressionContextUtils.projectScope(QgsProject.instance()).variable("active_plan_id")
6764

6865

6966
def get_lambda_settings():
7067
"""Retrieve Lambda settings, using defaults if not set."""
7168
settings = QSettings("ArhoFeatureTemplate")
7269
lambda_host = settings.value("lambda_host", "localhost")
73-
lambda_port = settings.value("lambda_port", "8081")
70+
lambda_port = settings.value("lambda_port", "8080")
7471
return lambda_host, lambda_port
75-
76-
77-
# def get_lambda_address():
78-
# """Returns lambda address."""
79-
# return LAMBDA_HOST, LAMBDA_PORT

0 commit comments

Comments
 (0)