summaryrefslogtreecommitdiff
path: root/lingucomponent/source/spellcheck/languagetool/languagetoolimp.hxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-03-04 19:44:50 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-03-04 17:59:49 +0000
commit5a87ff41ef784d6390da0df49b60186c21047112 (patch)
treef3fea926c3fc91cd60be1089cb927e6182d0f671 /lingucomponent/source/spellcheck/languagetool/languagetoolimp.hxx
parentecae66c41d82fecddd630cfdc144055a069134b0 (diff)
Restructure and deduplicate the code
Change-Id: Ib8701cbfbe0a025e19c34f0b52e0f67bf728f636 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148250 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'lingucomponent/source/spellcheck/languagetool/languagetoolimp.hxx')
-rw-r--r--lingucomponent/source/spellcheck/languagetool/languagetoolimp.hxx10
1 files changed, 0 insertions, 10 deletions
diff --git a/lingucomponent/source/spellcheck/languagetool/languagetoolimp.hxx b/lingucomponent/source/spellcheck/languagetool/languagetoolimp.hxx
index 0fc5edf877f0..fd2909d57ae2 100644
--- a/lingucomponent/source/spellcheck/languagetool/languagetoolimp.hxx
+++ b/lingucomponent/source/spellcheck/languagetool/languagetoolimp.hxx
@@ -36,12 +36,6 @@
#define PROOFREADING_ERROR 2
#define CURL_TIMEOUT 10L
-enum class HTTP_METHOD
-{
- HTTP_GET,
- HTTP_POST
-};
-
class LanguageToolGrammarChecker
: public cppu::WeakImplHelper<css::linguistic2::XProofreader, css::lang::XInitialization,
css::lang::XServiceInfo, css::lang::XServiceDisplayName>
@@ -55,10 +49,6 @@ class LanguageToolGrammarChecker
std::string_view aJSONBody);
static void parseProofreadingJSONResponse(css::linguistic2::ProofreadingResult& rResult,
std::string_view aJSONBody);
- static std::string makeDudenHttpRequest(std::string_view aURL, HTTP_METHOD method,
- const OString& aPostData, tools::Long& nStatusCode);
- static std::string makeHttpRequest(std::string_view aURL, HTTP_METHOD method,
- const OString& aPostData, tools::Long& nStatusCode);
public:
LanguageToolGrammarChecker();