Skip to content

Commit

Permalink
remove debug.profileend
Browse files Browse the repository at this point in the history
  • Loading branch information
Vorlias committed Nov 22, 2023
1 parent b4e69c1 commit c70c111
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/client/ClientAsyncFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ export default class ClientAsyncFunction<
} else {
warn("Recieved message without eventId");
}

if (microprofile) debug.profileend();
});
}

Expand Down
1 change: 0 additions & 1 deletion src/client/ClientEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ class ClientEvent<
return this.instance.OnClientEvent.Connect((...args) => {
debug.profilebegin(`Net: ${remoteId}`);
callback(...((args as unknown) as ConnectArgs));
debug.profileend();
});
} else {
return this.instance.OnClientEvent.Connect(callback);
Expand Down
1 change: 0 additions & 1 deletion src/server/ServerAsyncFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ class ServerAsyncFunction<
} else {
warn("[rbx-net-async] Recieved message without eventId");
}
if (microprofile) debug.profileend();
});
}

Expand Down
1 change: 0 additions & 1 deletion src/server/ServerEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ export default class ServerEvent<
return this.connection.Connect((player, ...args) => {
if (microprofile) debug.profilebegin(`Net: ${remoteId}`);
this._processMiddleware(callback)?.(player, ...((args as unknown) as ConnectArgs));
if (microprofile) debug.profileend();
});
}

Expand Down

0 comments on commit c70c111

Please sign in to comment.