From 7ac85e6a93d29df16f8cdd75f06531e368926463 Mon Sep 17 00:00:00 2001 From: Ziad Beyens Date: Sat, 7 Dec 2019 17:53:31 +0100 Subject: [PATCH] style: no-unused-vars (#3269) --- site/examples/markdown-preview.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/site/examples/markdown-preview.js b/site/examples/markdown-preview.js index 8f7046d00..353c96eaf 100644 --- a/site/examples/markdown-preview.js +++ b/site/examples/markdown-preview.js @@ -118,24 +118,6 @@ const Leaf = ({ attributes, children, leaf }) => { ) } -const Decoration = props => { - const { children, attributes, leaf } = props - - switch (decoration.type) { - case 'blockquote': { - return ( - - {children} - - ) - } - - default: { - throw new Error(`Unknown markdown decoration type: "${decoration.type}"`) - } - } -} - const initialValue = [ { children: [