From 015d7b246c5e8da64790b379e84cc0371c6eb4b9 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Wed, 6 Nov 2024 22:48:31 +0100 Subject: [PATCH] Remove comments --- Assets/Scripts/ConfigureNavBar.cs | 9 --------- Assets/Scripts/DialogHandler.cs | 1 - Assets/Scripts/EndpointLoader.cs | 3 +-- Assets/Scripts/ServiceDiscovery.cs | 2 +- 4 files changed, 2 insertions(+), 13 deletions(-) diff --git a/Assets/Scripts/ConfigureNavBar.cs b/Assets/Scripts/ConfigureNavBar.cs index efafb41..2418ad9 100644 --- a/Assets/Scripts/ConfigureNavBar.cs +++ b/Assets/Scripts/ConfigureNavBar.cs @@ -24,15 +24,6 @@ public class ConfigureNavBar : MonoBehaviour inputField.gameObject.SetActive(isVisible); } - /* - Transform addressFieldTransform = canvas.transform.Find("AddressField"); - if (addressFieldTransform != null) - { - Debug.Log("Setting address field visibility to " + isVisible); - addressFieldTransform.gameObject.SetActive(isVisible); - } - */ - BoxCollider boxCollider = canvas.GetComponent(); if (boxCollider != null) { diff --git a/Assets/Scripts/DialogHandler.cs b/Assets/Scripts/DialogHandler.cs index 78ba6f1..1c981e9 100644 --- a/Assets/Scripts/DialogHandler.cs +++ b/Assets/Scripts/DialogHandler.cs @@ -18,7 +18,6 @@ public class DialogHandler : MonoBehaviour ); if (dialog != null) { - // myDialog.OnClosed += OnClosedDialogEvent; dialog.OnClosed += (x) => { if (x.Result == DialogButtonType.Yes) diff --git a/Assets/Scripts/EndpointLoader.cs b/Assets/Scripts/EndpointLoader.cs index b2e3e1d..f218af1 100644 --- a/Assets/Scripts/EndpointLoader.cs +++ b/Assets/Scripts/EndpointLoader.cs @@ -68,7 +68,6 @@ public class EndpointLoader : MonoBehaviour { if (instantiatedItems.Count == 0) { - // return dynamicItem.transform.position; return new Vector3(-0.4f, 0.1f, 1); } @@ -142,7 +141,7 @@ public class EndpointLoader : MonoBehaviour { Debug.LogError("Failed to load default endpoints"); dialogHandler.OpenDialog( - "Failed to load the default endpoints\r\n", + "Failed to load the default endpoints", "Do you want to try one more time?\r\n" + "If you click \"No\", we will continue waiting for mDNS services to appear.", () => diff --git a/Assets/Scripts/ServiceDiscovery.cs b/Assets/Scripts/ServiceDiscovery.cs index a2248ee..e0e814b 100644 --- a/Assets/Scripts/ServiceDiscovery.cs +++ b/Assets/Scripts/ServiceDiscovery.cs @@ -286,7 +286,7 @@ public class ServiceDiscovery : MonoBehaviour } else if (recordType == 47) // NSEC Record { - Debug.Log($"NSEC Record: {name}"); + // Debug.Log($"NSEC Record: {name}"); } else {