Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
wtetsu committed Mar 16, 2019
1 parent 1963a8e commit 05fec25
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions src/main/mdwindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,10 @@ import dom from "../lib/dom";
export default {
create(settings) {
const dialog = createDialogElement(settings);

let header;
if (settings.showTitlebar) {
header = createHeaderElement(settings);
dialog.appendChild(header);
}

const content = createContentWrapperElement(settings);
dialog.appendChild(content);

return { dialog, header, content };
return { dialog, content };
}
};

Expand All @@ -37,7 +30,6 @@ const createDialogElement = settings => {
const html = compiledTemplate.render({
systemStyles,
backgroundColor: settings.backgroundColor,
titlebarBackgroundColor: settings.titlebarBackgroundColor,
width: settings.width,
height: settings.height,
scroll: settings.scroll
Expand All @@ -47,15 +39,6 @@ const createDialogElement = settings => {
return dialog;
};

const createHeaderElement = settings => {
const compiledTemplate = Hogan.compile(settings.titlebarTemplate);
const html = compiledTemplate.render({
backgroundColor: settings.backgroundColor,
titlebarBackgroundColor: settings.titlebarBackgroundColor
});
return dom.create(html);
};

const createContentWrapperElement = settings => {
const dialog = dom.create(settings.contentWrapperTemplate);
return dialog;
Expand Down

0 comments on commit 05fec25

Please sign in to comment.