Skip to content

Commit a006fea

Browse files
committed
refactor: remove dead code
1 parent 96970c8 commit a006fea

2 files changed

Lines changed: 0 additions & 24 deletions

File tree

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2558,7 +2558,6 @@ function RemoteFunctions(config = {}) {
25582558
this.currentPage = 1;
25592559
this.totalPages = 1;
25602560
this.allImages = [];
2561-
this.imagesPerPage = 10;
25622561
this.scrollPosition = 0;
25632562

25642563
this.create();
@@ -4724,17 +4723,6 @@ function RemoteFunctions(config = {}) {
47244723
}
47254724
}
47264725

4727-
/**
4728-
* This function checks if there are any live preview boxes currently visible
4729-
* @return {boolean} true if any boxes are visible, false otherwise
4730-
*/
4731-
function hasVisibleLivePreviewBoxes() {
4732-
return _nodeMoreOptionsBox !== null ||
4733-
_nodeInfoBox !== null ||
4734-
_aiPromptBox !== null ||
4735-
previouslyClickedElement !== null;
4736-
}
4737-
47384726
/**
47394727
* Helper function to dismiss NodeMoreOptionsBox if it exists
47404728
*/
@@ -5205,7 +5193,6 @@ function RemoteFunctions(config = {}) {
52055193
"updateConfig" : updateConfig,
52065194
"startEditing" : startEditing,
52075195
"finishEditing" : finishEditing,
5208-
"hasVisibleLivePreviewBoxes" : hasVisibleLivePreviewBoxes,
52095196
"dismissUIAndCleanupState" : dismissUIAndCleanupState,
52105197
"resetState" : resetState,
52115198
"enableHoverListeners" : enableHoverListeners,

src/LiveDevelopment/LiveDevMultiBrowser.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -700,16 +700,6 @@ define(function (require, exports, module) {
700700
}
701701
}
702702

703-
/**
704-
* Check if live preview boxes are currently visible
705-
*/
706-
function hasVisibleLivePreviewBoxes() {
707-
if (_protocol) {
708-
return _protocol.evaluate("_LD.hasVisibleLivePreviewBoxes()");
709-
}
710-
return false;
711-
}
712-
713703
/**
714704
* Dismiss live preview boxes like info box, options box, AI box
715705
*/
@@ -815,7 +805,6 @@ define(function (require, exports, module) {
815805
exports.showHighlight = showHighlight;
816806
exports.hideHighlight = hideHighlight;
817807
exports.redrawHighlight = redrawHighlight;
818-
exports.hasVisibleLivePreviewBoxes = hasVisibleLivePreviewBoxes;
819808
exports.dismissLivePreviewBoxes = dismissLivePreviewBoxes;
820809
exports.registerHandlers = registerHandlers;
821810
exports.updateConfig = updateConfig;

0 commit comments

Comments
 (0)