Skip to content

Commit 0705c29

Browse files
committed
Remove redundant console.log()s
1 parent cb4cab5 commit 0705c29

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

src/gui/src/init_sync.js

-10
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ logger.info('start -> blocking initialization');
111111

112112
registry_.hooks_on_register.forEach(hook => hook({ cls }));
113113

114-
console.log('registered class', id, registry_);
115-
116114
// Find class that owns 'on_self_registered' hook
117115
let owner = cls;
118116
while (
@@ -133,7 +131,6 @@ logger.info('start -> blocking initialization');
133131
};
134132

135133
scope.use = id => {
136-
console.log('use called with id: ', id);
137134
if ( id === undefined ) {
138135
return registry_.classes_m;
139136
}
@@ -142,13 +139,6 @@ logger.info('start -> blocking initialization');
142139
throw new Error(`Class with ID ${id} not registered`);
143140
}
144141

145-
console.log(
146-
'okay it\'s going to return:',
147-
registry_.classes_m[id],
148-
'and the entire map is this: ',
149-
registry_.classes_m
150-
)
151-
152142
return registry_.classes_m[id];
153143
}
154144
})(globalThis);

src/gui/src/util/Component.js

-9
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,10 @@ export const Component = def(class Component extends HTMLElement {
3737

3838
// Automatically define components for all HTML elements
3939
on_other_registered(({ cls }) => {
40-
console.log('detected class', cls.ID);
4140
if ( cls.ID === 'ui.component.StepHeading' ) {
4241
globalThis.sh_shouldbe = cls;
43-
console.log(
44-
'this is what StepHeading should be',
45-
cls
46-
);
4742
}
4843
if ( globalThis.lib.is_subclass(cls, HTMLElement) ) {
49-
console.log('registering as an element');
5044
defineComponent(cls);
5145
}
5246
});
@@ -222,9 +216,6 @@ export const defineComponent = (component) => {
222216
// TODO: This is necessary because files can be loaded from
223217
// both `/src/UI` and `/UI` in the URL; we need to fix that
224218
if ( customElements.get(name) ) return;
225-
226-
// console.log('[surely] defining', name, 'as', component);
227-
228219
customElements.define(name, component);
229220
component.defined_as = name;
230221
}

0 commit comments

Comments
 (0)