Skip to content

Commit cb13341

Browse files
committed
[Stash] Remove redundant debug information
1 parent b0bf368 commit cb13341

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/core/reactor.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ export abstract class Reactor extends Component {
10951095
* @param src The start point of a new connection.
10961096
* @param dst The end point of a new connection.
10971097
*/
1098-
public canConnect<R, S extends R>(src: IOPort<S>, dst: IOPort<R>): boolean | number /* dirty hack here */ {
1098+
public canConnect<R, S extends R>(src: IOPort<S>, dst: IOPort<R>): boolean | number {
10991099
// Immediate rule out trivial self loops.
11001100
if (src === dst) {
11011101
throw Error("Source port and destination port are the same.");
@@ -1110,7 +1110,8 @@ export abstract class Reactor extends Component {
11101110
}
11111111

11121112
if (! (src.checkKey(this._key) && dst.checkKey(this._key) )) {
1113-
console.log("[debug] Scoping issue. Does not possess valid key for src/dst.")
1113+
// FIXME: dirty hack here
1114+
// Scoping issue. Does not possess valid key for src/dst.
11141115
return 2;
11151116
}
11161117

@@ -1591,20 +1592,15 @@ export abstract class Reactor extends Component {
15911592
let currentLevel: Reactor = this;
15921593
let atTopLevel = false;
15931594
while (currentLevel != null && !atTopLevel) {
1594-
console.log(`[DEBUG] _elevatedConnect: I am ${currentLevel}, my parent is ${currentLevel._getContainer()}`);
1595-
console.log(`[DEBUG] _elevatedConnect: ${currentLevel != null && currentLevel._getContainer() !== currentLevel ? "yes" : "no"}`)
15961595
if (currentLevel === currentLevel._getContainer()) {
15971596
atTopLevel = true;
15981597
}
1599-
console.log(`[DEBUG] _elevatedConnect: Attempting connection from ${currentLevel}`)
16001598
try {
16011599
currentLevel._connect(...args);
16021600
return
16031601
} catch (error) {
1604-
console.log(`[DEBUG] _elevatedConnect: Error - ${(error as Error).message}`)
16051602
}
16061603
currentLevel = currentLevel._getContainer();
1607-
console.log(`[DEBUG] next level ${currentLevel}`)
16081604
}
16091605
throw new Error(`[DEBUG] _elevatedConnect: Elevated connect failed for ${this._getFullyQualifiedName()}.`);
16101606
}

0 commit comments

Comments
 (0)