Skip to content

Commit

Permalink
Remove unused code (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
elchininet authored Jan 3, 2024
1 parent 664cac3 commit 6109183
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
3 changes: 1 addition & 2 deletions src/custom-sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import {
ConfigNewItem,
ConfigOrder,
ConfigOrderWithItem,
HomeAssistant,
ElementHash
HomeAssistant
} from '@types';
import {
ELEMENT,
Expand Down
5 changes: 0 additions & 5 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,4 @@ export interface Config {
title?: string;
order: ConfigOrder[];
exceptions?: ConfigException[];
}

export interface ElementHash {
byTextContent: Record<string, Element>;
byPanelName: Record<string, Element>;
}
9 changes: 1 addition & 8 deletions src/utilities/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,4 @@ export const getFinalOrder = (
return flatConfigOrder(exceptionsOrder);
}
return flatConfigOrder(order);
};

// export const addStyle = (elem: Element | ShadowRoot, css: string): void => {
// const style = document.createElement('style');
// style.setAttribute('id', NAMESPACE);
// elem.appendChild(style);
// style.innerHTML = css;
// };
};

0 comments on commit 6109183

Please sign in to comment.