Skip to content

Commit 9e6b63c

Browse files
committed
remove unecessary logs
1 parent 573200e commit 9e6b63c

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@colyseus/schema",
3-
"version": "3.0.8",
3+
"version": "3.0.9",
44
"description": "Binary state serializer with delta encoding for games",
55
"bin": {
66
"schema-codegen": "./bin/schema-codegen",

src/decoder/strategy/StateCallbacks.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ export function getDecoderStateCallbacks<T extends Schema>(decoder: Decoder<T>):
107107
let currentOnAddCallback: Function | undefined;
108108

109109
decoder.triggerChanges = function (allChanges: DataChange[]) {
110-
// console.log("ALL CHANGES =>", allChanges);
111-
112110
const uniqueRefIds = new Set<number>();
113111

114112
for (let i = 0, l = allChanges.length; i < l; i++) {
@@ -292,9 +290,7 @@ export function getDecoderStateCallbacks<T extends Schema>(decoder: Decoder<T>):
292290
const instance = context.instance?.[prop];
293291
const onInstanceAvailable: OnInstanceAvailableCallback = (
294292
(callback: (ref: Ref, existing: boolean) => void) => {
295-
console.log("onInstanceAvailable!!");
296293
const unbind = $(context.instance).listen(prop, (value, _) => {
297-
console.log("prop changed!", prop);
298294
callback(value, false);
299295

300296
// FIXME: by "unbinding" the callback here,
@@ -349,12 +345,10 @@ export function getDecoderStateCallbacks<T extends Schema>(decoder: Decoder<T>):
349345
};
350346

351347
const onRemove = function (ref: Ref, callback: (value: any, key: any) => void) {
352-
console.log("REGISTER ON REMOVE ON", $root.refIds.get(ref));
353348
return $root.addCallback($root.refIds.get(ref), OPERATION.DELETE, callback);
354349
};
355350

356351
const onChange = function (ref: Ref, callback: (value: any, key: any) => void) {
357-
console.log("REGISTER ON CHANGE ON", $root.refIds.get(ref));
358352
return $root.addCallback($root.refIds.get(ref), OPERATION.REPLACE, callback);
359353
};
360354

0 commit comments

Comments
 (0)