Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 368dc8f

Browse files
committed
[Raycast] Remove Debug.Log
1 parent dd78120 commit 368dc8f

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

Runtime/Plugins/Raycast/RaycastManager.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,17 @@ public static RaycastManager instance {
5757

5858
public static void NewWindow(int windowHashCode) {
5959
if (!instance.raycastHandlerMap.ContainsKey(windowHashCode)) {
60-
// Debug.Log($"New Window: @[{windowHashCode}] ({instance.raycastHandlerMap.Count})");
6160
instance.raycastHandlerMap.Add(windowHashCode, new Dictionary<int, RaycastableRect>());
6261
}
6362
}
6463

6564
public static void DisposeWindow(int windowHashCode) {
6665
if (instance.raycastHandlerMap.ContainsKey(windowHashCode)) {
67-
// Debug.Log($"Dispose Window: @[{windowHashCode}]");
6866
instance.raycastHandlerMap.Remove(windowHashCode);
6967
}
7068
}
7169

7270
public static void AddToList(int widgetHashCode, int windowHashCode) {
73-
// Debug.Log($"Add To List: [{widgetHashCode}]@[{windowHashCode}]");
7471
D.assert(instance.raycastHandlerMap.ContainsKey(windowHashCode), () =>
7572
$"Raycast Handler Map doesn't contain Window {windowHashCode}, " +
7673
$"Make sure using UIWidgetsRaycastablePanel instead of UIWidgetsPanel " +
@@ -82,7 +79,6 @@ public static void AddToList(int widgetHashCode, int windowHashCode) {
8279
}
8380

8481
public static void MarkDirty(int widgetHashCode, int windowHashCode) {
85-
// Debug.Log($"Mark Dirty: [{widgetHashCode}]@[{windowHashCode}]");
8682
D.assert(instance.raycastHandlerMap.ContainsKey(windowHashCode), () =>
8783
$"Raycast Handler Map doesn't contain Window {windowHashCode}");
8884
D.assert(instance.raycastHandlerMap[windowHashCode].ContainsKey(widgetHashCode), () =>
@@ -98,15 +94,13 @@ public static void UpdateSizeOffset(int widgetHashCode, int windowHashCode, Size
9894
$"Raycast Handler Map doesn't contain Widget {widgetHashCode} at Window {windowHashCode}");
9995

10096
if (instance.raycastHandlerMap[windowHashCode][widgetHashCode].isDirty) {
101-
// Debug.Log($"Update Size Offset: [{widgetHashCode}]@[{windowHashCode}]");
10297
instance.raycastHandlerMap[windowHashCode][widgetHashCode]
10398
.UpdateRect(offset.dx, offset.dy, size.width, size.height);
10499
instance.raycastHandlerMap[windowHashCode][widgetHashCode].UnmarkDirty();
105100
}
106101
}
107102

108103
public static void RemoveFromList(int widgetHashCode, int windowHashCode) {
109-
// Debug.Log($"Remove From List: [{widgetHashCode}]@[{windowHashCode}]");
110104
D.assert(instance.raycastHandlerMap.ContainsKey(windowHashCode), () =>
111105
$"Raycast Handler Map doesn't contain Window {windowHashCode}");
112106
D.assert(instance.raycastHandlerMap[windowHashCode].ContainsKey(widgetHashCode), () =>

Runtime/Plugins/Raycast/RaycastableContainer.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ RaycastableBox widget
3939
readonly int windowHashCode;
4040

4141
public override void paint(PaintingContext context, Offset offset) {
42-
// Debug.Log($"[RenderRaycastableBox] Paint {this.widget.GetHashCode()}: {this.size}@{offset}");
4342
RaycastManager.UpdateSizeOffset(this.widgetHashCode, this.windowHashCode, this.size, offset);
4443

4544
base.paint(context, offset);
@@ -63,20 +62,16 @@ RaycastableBox widget
6362

6463
public override void mount(Element parent, object newSlot) {
6564
this.widgetHashCode = this.widget.GetHashCode();
66-
67-
// Debug.Log($"[RaycastableBox] Mount: {this.initHashCode}");
6865
RaycastManager.AddToList(this.widgetHashCode, this.windowHashCode);
6966
base.mount(parent, newSlot);
7067
}
7168

7269
public override void update(Widget newWidget) {
73-
// Debug.Log($"[RaycastableBox] Update: {this.initHashCode}");
7470
RaycastManager.MarkDirty(this.widgetHashCode, this.windowHashCode);
7571
base.update(newWidget);
7672
}
7773

7874
public override void unmount() {
79-
// Debug.Log($"[RaycastableBox] Unmount: {this.initHashCode}");
8075
RaycastManager.RemoveFromList(this.widgetHashCode, this.windowHashCode);
8176
base.unmount();
8277
}

0 commit comments

Comments
 (0)