diff --git a/docs/src/modules/components/Demo.js b/docs/src/modules/components/Demo.js
index <HASH>..<HASH> 100644
--- a/docs/src/modules/components/Demo.js
+++ b/docs/src/modules/components/Demo.js
@@ -179,10 +179,6 @@ export default function Demo(props) {
   }
 
   const [codeOpen, setCodeOpen] = React.useState(demoOptions.defaultCodeOpen || false);
-  const shownOnce = React.useRef(false);
-  if (codeOpen) {
-    shownOnce.current = true;
-  }
 
   React.useEffect(() => {
     const navigatedDemoName = getDemoName(window.location.hash);
[docs] Remove unused code (#<I>)