Skip to content

Commit

Permalink
Remove unused render count in yabai context
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Tinland committed Apr 28, 2024
1 parent d6f3927 commit 34099e3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/components/yabai-context.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ export function useYabaiContext() {

export default React.memo(YabaiContextProvider);

let renderCount = 0;

function YabaiContextProvider({ spaces, windows, skhdMode, children }) {
const { settings, setYabaiDisplays } = useSimpleBarContext();
const { enableServer, yabaiServerRefresh } = settings.global;
Expand Down Expand Up @@ -58,8 +56,6 @@ function YabaiContextProvider({ spaces, windows, skhdMode, children }) {
useServerSocket("windows", serverEnabled, getWindows, resetWindows);
useServerSocket("displays", serverEnabled, getDisplays, resetDisplays);

renderCount = renderCount + 1;

return (
<YabaiContext.Provider
value={{
Expand Down

0 comments on commit 34099e3

Please sign in to comment.