From a68a6466f9e8eeb125e47f36b32bf0def87887d1 Mon Sep 17 00:00:00 2001 From: Renaud Chaput Date: Fri, 13 Oct 2017 02:59:56 +0000 Subject: [PATCH] [Doc] Remove unused code in Plugins Walkthroughs (#1172) The `BoldMark` function has been inlined below, it is no longer used here --- docs/walkthroughs/using-plugins.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/walkthroughs/using-plugins.md b/docs/walkthroughs/using-plugins.md index 67fc7881e..5b582a5fa 100644 --- a/docs/walkthroughs/using-plugins.md +++ b/docs/walkthroughs/using-plugins.md @@ -91,10 +91,6 @@ Boom! Now we're getting somewhere. That code is reusable for any type of mark. Now that we have our plugin, let's remove the hard-coded logic from our app, and replace it with our brand new `MarkHotkey` plugin instead, passing in the same options that will keep our **bold** functionality intact: ```js -function BoldMark(props) { - return {props.children} -} - // Initialize our bold-mark-adding plugin. const boldPlugin = MarkHotkey({ type: 'bold',