diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-03-04 19:44:50 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-03-04 17:59:49 +0000 |
commit | 5a87ff41ef784d6390da0df49b60186c21047112 (patch) | |
tree | f3fea926c3fc91cd60be1089cb927e6182d0f671 /lingucomponent/source/spellcheck/languagetool/languagetoolimp.hxx | |
parent | ecae66c41d82fecddd630cfdc144055a069134b0 (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.hxx | 10 |
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(); |