Skip to content

Commit d107a49

Browse files
lsteinLincoln Stein
andauthored
remove unneeded console debugging statements (#65)
Co-authored-by: Lincoln Stein <lstein@gmail.com>
1 parent 3c2cff5 commit d107a49

3 files changed

Lines changed: 0 additions & 14 deletions

File tree

photomap/frontend/static/javascript/events.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,6 @@ export async function toggleGridSwiperView(gridView = null) {
502502
}
503503

504504
if (state.gridViewActive) {
505-
console.log("Switching to grid view");
506505
await initializeGridSwiper();
507506
} else {
508507
await initializeSingleSwiper();

photomap/frontend/static/javascript/grid-view.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ export async function initializeGridSwiper() {
134134
gridInitialized = true;
135135
// For console debugging
136136
window.gridSwiper = state.swiper;
137-
console.log("Grid swiper initialized:", state.swiper);
138137
}
139138

140139
function addGridEventListeners() {
@@ -175,9 +174,6 @@ function addGridEventListeners() {
175174
{ type: "grid", event: "seekToSlideIndex" },
176175
async (e) => {
177176
const { globalIndex, searchIndex, totalSlides, isSearchMode } = e.detail;
178-
console.log(
179-
`Grid received seekToSlideIndex: globalIndex=${globalIndex}, searchIndex=${searchIndex}, totalSlides=${totalSlides}, isSearchMode=${isSearchMode}`
180-
);
181177
if (isSearchMode !== slideState.isSearchMode) {
182178
console.error("Mismatched search mode in setSlideIndex event");
183179
return;
@@ -364,9 +360,6 @@ async function resetAllSlides() {
364360
// The startIndex will be adjusted to be an even multiple of the screen size.
365361
// If startIndex is null, load the next batch after the last loaded slide.
366362
async function loadBatch(startIndex = null, append = true) {
367-
console.log(
368-
`loadBatch called with startIndex=${startIndex}, append=${append}`
369-
);
370363
if (startIndex === null) {
371364
// Load after the last loaded slide
372365
if (!state.swiper.slides?.length) {
@@ -483,7 +476,6 @@ async function loadBatch(startIndex = null, append = true) {
483476

484477
updateCurrentSlide();
485478

486-
console.log(`loadBatch actually loaded ${actuallyLoaded} slides.`);
487479
return actuallyLoaded > 0;
488480
}
489481

photomap/frontend/static/javascript/slide-state.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,6 @@ class SlideStateManager {
247247
this.currentGlobalIndex = 0;
248248
this.currentSearchIndex = 0;
249249
this.exitSearchMode();
250-
console.log(
251-
"Album changed, setting totalAlbumImages to",
252-
detail.totalImages
253-
);
254250
this.totalAlbumImages = detail.totalImages; // Update from state
255251
}
256252

@@ -266,7 +262,6 @@ class SlideStateManager {
266262

267263
seekToSlideIndex() {
268264
const slideInfo = this.getCurrentSlide();
269-
console.log("Dispatching seekToSlideIndex event:", slideInfo);
270265
window.dispatchEvent(
271266
new CustomEvent("seekToSlideIndex", {
272267
detail: slideInfo,

0 commit comments

Comments
 (0)