From c6d4ba8c451eb23146687f4c0b037b195c6767b1 Mon Sep 17 00:00:00 2001 From: Niqui O'Neill Date: Mon, 30 Nov 2020 14:31:55 -0800 Subject: [PATCH] remove unused variables --- src/editor/widgets/comment/CommentWidget.jsx | 1 - src/editor/widgets/comment/PurposeDropdown.jsx | 1 - 2 files changed, 2 deletions(-) diff --git a/src/editor/widgets/comment/CommentWidget.jsx b/src/editor/widgets/comment/CommentWidget.jsx index 4c86fc0..f6e168d 100644 --- a/src/editor/widgets/comment/CommentWidget.jsx +++ b/src/editor/widgets/comment/CommentWidget.jsx @@ -50,7 +50,6 @@ const CommentWidget = props => { } const onUpdatePurpose = evt => { - const prev = draftReply.purpose.trim(); const updated = evt.value.trim(); if (draftReply.value == '' && updated.length > 0) { draftReply.purpose = updated; diff --git a/src/editor/widgets/comment/PurposeDropdown.jsx b/src/editor/widgets/comment/PurposeDropdown.jsx index a04e8a6..2258283 100644 --- a/src/editor/widgets/comment/PurposeDropdown.jsx +++ b/src/editor/widgets/comment/PurposeDropdown.jsx @@ -1,5 +1,4 @@ import React, { Component } from 'preact/compat'; -import i18n from '../../../i18n'; import Select from 'react-select'; const purposes = [{'value': 'assessing', 'label': 'Assessing'}, {'value': 'bookmarking', 'label': 'Bookmarking'}, {'value': 'classifying', 'label': 'Classifying'}, {'value': 'commenting', 'label': 'Commenting'}, {'value': 'describing', 'label': 'Describing'},{'value': 'editing', 'label': 'Editing'}, {'value': 'highlighting', 'label': 'Highlighting'},{'value': 'identifying', 'label': 'Identifying'},{'value': 'linking', 'label': 'Linking'},{'value': 'moderating', 'label': 'Moderating'},{'value': 'questioning', 'label': 'Questioning'}]