Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieTheWagner committed Jul 24, 2019
1 parent c6ae0ee commit 8219c23
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/js/modal.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import preact from 'preact';
import {
getModalMaskOpening,
classNames as modalClassNames
} from './utils/modal.jsx';
import autoBind from './utils/auto-bind';
Expand Down Expand Up @@ -63,7 +62,6 @@ export class Modal {
if (!this._modalOverlayElem) {
const existingModal = document.getElementById('shepherdModalOverlayContainer');
this._modalOverlayElem = render(<ShepherdModal ref={(c) => this.modalComponent = c}/>, document.body, existingModal);
this._modalOverlayOpening = getModalMaskOpening(this._modalOverlayElem);

// don't show yet -- each step will control that
this.hide();
Expand Down
5 changes: 0 additions & 5 deletions src/js/utils/modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ const classNames = {
modalTarget: 'shepherd-modal-target'
};

function getModalMaskOpening(modalElement) {
return modalElement.querySelector(`#${elementIds.modalOverlayMaskOpening}`);
}

function preventModalBodyTouch(event) {
event.preventDefault();
}
Expand All @@ -39,7 +35,6 @@ function toggleShepherdModalClass(currentElement) {
export {
preventModalBodyTouch,
preventModalOverlayTouch,
getModalMaskOpening,
elementIds,
classNames,
toggleShepherdModalClass
Expand Down

0 comments on commit 8219c23

Please sign in to comment.