From 67bface07504b1e5809c860f81c2cdc1d3a720a3 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 8 Jun 2020 21:34:00 -0700 Subject: [PATCH] Drop an unneeded function It was only one line, and only called once, so better just to inline it. --- empathy/empathy.jsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 => {