From: Carl Worth Date: Tue, 9 Jun 2020 04:34:00 +0000 (-0700) Subject: Drop an unneeded function X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=commitdiff_plain;h=67bface07504b1e5809c860f81c2cdc1d3a720a3 Drop an unneeded function It was only one line, and only called once, so better just to inline it. --- diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx index 959c3fe..110b330 100644 --- a/empathy/empathy.jsx +++ b/empathy/empathy.jsx @@ -212,10 +212,6 @@ class CategoryRequest extends React.PureComponent { const PromptOptions = React.memo(props => { - function handle_click(id) { - fetch_post_json(`vote/${id}`); - } - if (props.prompts.length === 0) return null; @@ -231,7 +227,7 @@ const PromptOptions = React.memo(props => {