From 56f218b850bf12517f3c661b6807ef5061caf514 Mon Sep 17 00:00:00 2001 From: Hiroyuki Komatsu Date: Sat, 27 Jan 2024 06:16:56 +0000 Subject: [PATCH] Remove the spelling/ directory. PiperOrigin-RevId: 601952049 --- src/session/BUILD.bazel | 7 - src/spelling/BUILD.bazel | 228 ------------------ src/spelling/rulebased_filter.cc | 29 --- src/spelling/rulebased_filter.h | 33 --- src/spelling/rulebased_filter_test.cc | 31 --- src/spelling/rulebased_lm.cc | 29 --- src/spelling/rulebased_lm.h | 33 --- src/spelling/rulebased_lm_test.cc | 31 --- src/spelling/spellchecker_service.cc | 29 --- src/spelling/spellchecker_service.h | 33 --- src/spelling/spellchecker_service_factory.cc | 32 --- src/spelling/spellchecker_service_interface.h | 59 ----- src/spelling/spellchecker_service_main.cc | 33 --- .../spellchecker_service_registration.cc | 29 --- src/spelling/spellchecker_service_test.cc | 37 --- 15 files changed, 673 deletions(-) delete mode 100644 src/spelling/BUILD.bazel delete mode 100644 src/spelling/rulebased_filter.cc delete mode 100644 src/spelling/rulebased_filter.h delete mode 100644 src/spelling/rulebased_filter_test.cc delete mode 100644 src/spelling/rulebased_lm.cc delete mode 100644 src/spelling/rulebased_lm.h delete mode 100644 src/spelling/rulebased_lm_test.cc delete mode 100644 src/spelling/spellchecker_service.cc delete mode 100644 src/spelling/spellchecker_service.h delete mode 100644 src/spelling/spellchecker_service_factory.cc delete mode 100644 src/spelling/spellchecker_service_interface.h delete mode 100644 src/spelling/spellchecker_service_main.cc delete mode 100644 src/spelling/spellchecker_service_registration.cc delete mode 100644 src/spelling/spellchecker_service_test.cc diff --git a/src/session/BUILD.bazel b/src/session/BUILD.bazel index bd84374e8..592b0a83c 100644 --- a/src/session/BUILD.bazel +++ b/src/session/BUILD.bazel @@ -282,13 +282,11 @@ mozc_cc_library( hdrs = ["session_handler.h"], deps = mozc_select( android = [ - "//spelling:spellchecker_service_interface", ], client = [], default = [ ":session_watch_dog", "//base:process", - "//spelling:spellchecker_service_interface", ], linux = [ ":session_watch_dog", @@ -351,16 +349,12 @@ mozc_cc_library( hdrs = ["session_handler_test_util.h"], deps = mozc_select( android = [ - "//spelling:spellchecker_service_interface", - "//spelling:spellchecker_service_registration", ], default = [ ":session_watch_dog", ], linux = [ ":session_watch_dog", - "//spelling:spellchecker_service_interface", - "//spelling:spellchecker_service_registration", ], ) + [ ":session_handler", @@ -425,7 +419,6 @@ mozc_cc_test( "//protocol:commands_cc_proto", "//protocol:config_cc_proto", "//session/internal:keymap", - "//spelling:spellchecker_service_interface", "//testing:gunit_main", "//usage_stats:usage_stats_testing_util", "@com_google_absl//absl/flags:flag", diff --git a/src/spelling/BUILD.bazel b/src/spelling/BUILD.bazel deleted file mode 100644 index fcbc3b772..000000000 --- a/src/spelling/BUILD.bazel +++ /dev/null @@ -1,228 +0,0 @@ -# Copyright 2010-2021, Google Inc. -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following disclaimer -# in the documentation and/or other materials provided with the -# distribution. -# * Neither the name of Google Inc. nor the names of its -# contributors may be used to endorse or promote products derived from -# this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -load( - "//:build_defs.bzl", - "mozc_cc_binary", - "mozc_cc_library", - "mozc_cc_test", - "mozc_select", -) - -package( - default_visibility = ["//:__subpackages__"], -) - -mozc_cc_library( - name = "spellchecker_service_interface", - srcs = ["spellchecker_service_factory.cc"], - hdrs = ["spellchecker_service_interface.h"], - visibility = [ - "//:__subpackages__", - ], - deps = [ - "//composer:query", - "//engine:spellchecker_interface", - "//protocol:engine_builder_cc_proto", - ], -) - -mozc_cc_library( - name = "spellchecker_service_registration", - srcs = ["spellchecker_service_registration.cc"], - tags = [ - "nomac", - "nowin", - ], - target_compatible_with = mozc_select( - default = [], - macos = ["@platforms//:incompatible"], - windows = ["@platforms//:incompatible"], - ), - deps = [ - ":spellchecker_service", - ":spellchecker_service_interface", - "//composer:query", - "//converter:segments", - "//protocol:commands_cc_proto", - "//protocol:engine_builder_cc_proto", - ], - alwayslink = 1, -) - -mozc_cc_library( - name = "spellchecker_service", - srcs = ["spellchecker_service.cc"], - hdrs = ["spellchecker_service.h"], - tags = [ - "nomac", - "nowin", - ], - target_compatible_with = mozc_select( - default = [], - macos = ["@platforms//:incompatible"], - windows = ["@platforms//:incompatible"], - ), - deps = [ - ":rulebased_filter", - ":rulebased_lm", - ":spellchecker_service_interface", - "//base:file_util", - "//base:mmap", - "//base:thread", - "//base:util", - "//base/strings:japanese", - "//composer:query", - "//converter:segments", - "//protocol:commands_cc_proto", - "//protocol:engine_builder_cc_proto", - "@com_google_absl//absl/algorithm:container", - "@com_google_absl//absl/container:flat_hash_set", - "@com_google_absl//absl/status", - "@com_google_absl//absl/strings", - "@com_google_absl//absl/types:span", - ], - alwayslink = 1, -) - -mozc_cc_binary( - name = "spellchecker_service_main", - srcs = ["spellchecker_service_main.cc"], - tags = [ - "nomac", - "nowin", - ], - target_compatible_with = mozc_select( - default = [], - macos = ["@platforms//:incompatible"], - windows = ["@platforms//:incompatible"], - ), - deps = [ - ":spellchecker_service_interface", - ":spellchecker_service_registration", - "//protocol:commands_cc_proto", - "//protocol:engine_builder_cc_proto", - "@com_google_absl//absl/flags:flag", - "@com_google_absl//absl/strings", - ], -) - -mozc_cc_test( - name = "spellchecker_service_test", - size = "small", - srcs = ["spellchecker_service_test.cc"], - tags = [ - "nomac", - "nowin", - ], - target_compatible_with = mozc_select( - default = [], - macos = ["@platforms//:incompatible"], - windows = ["@platforms//:incompatible"], - ), - deps = [ - ":rulebased_lm", - ":spellchecker_service", - ":spellchecker_service_interface", - "//base/strings:japanese", - "//composer:query", - "//converter:segments", - "//protocol:commands_cc_proto", - "//testing:gunit_main", - "@com_google_absl//absl/status", - "@com_google_absl//absl/status:statusor", - "@com_google_absl//absl/strings", - "@com_google_absl//absl/types:span", - ], -) - -mozc_cc_library( - name = "rulebased_filter", - srcs = ["rulebased_filter.cc"], - hdrs = ["rulebased_filter.h"], - deps = [ - "//base:file_stream", - "//base:logging", - "@com_google_absl//absl/container:flat_hash_map", - "@com_google_absl//absl/container:flat_hash_set", - "@com_google_absl//absl/status", - "@com_google_absl//absl/strings", - "@com_google_absl//absl/synchronization", - "@com_google_absl//absl/types:span", - ], -) - -mozc_cc_test( - name = "rulebased_filter_test", - size = "small", - srcs = ["rulebased_filter_test.cc"], - deps = [ - ":rulebased_filter", - "//base:file_stream", - "//base:file_util", - "//base/file:temp_dir", - "//testing:gunit_main", - "//testing:mozctest", - "@com_google_absl//absl/strings", - ], -) - -mozc_cc_library( - name = "rulebased_lm", - srcs = ["rulebased_lm.cc"], - hdrs = ["rulebased_lm.h"], - deps = [ - "//base:file_stream", - "//base:hash", - "//base:logging", - "//base:mmap", - "//base:util", - "//storage:existence_filter", - "@com_google_absl//absl/container:flat_hash_map", - "@com_google_absl//absl/status", - "@com_google_absl//absl/strings", - "@com_google_absl//absl/types:span", - ], -) - -mozc_cc_test( - name = "rulebased_lm_test", - size = "small", - srcs = ["rulebased_lm_test.cc"], - deps = [ - ":rulebased_lm", - "//base:file_stream", - "//base:file_util", - "//base:hash", - "//storage:existence_filter", - "//testing:gunit_main", - "@com_google_absl//absl/flags:flag", - "@com_google_absl//absl/strings", - ], -) diff --git a/src/spelling/rulebased_filter.cc b/src/spelling/rulebased_filter.cc deleted file mode 100644 index 93e6ec288..000000000 --- a/src/spelling/rulebased_filter.cc +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2010-2021, Google Inc. -// All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - diff --git a/src/spelling/rulebased_filter.h b/src/spelling/rulebased_filter.h deleted file mode 100644 index 53cde04f5..000000000 --- a/src/spelling/rulebased_filter.h +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2010-2021, Google Inc. -// All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -#ifndef MOZC_SPELLING_RULEBASED_FILTER_H_ -#define MOZC_SPELLING_RULEBASED_FILTER_H_ - -#endif // MOZC_SPELLING_RULEBASED_FILTER_H_ diff --git a/src/spelling/rulebased_filter_test.cc b/src/spelling/rulebased_filter_test.cc deleted file mode 100644 index 4e3620723..000000000 --- a/src/spelling/rulebased_filter_test.cc +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2010-2021, Google Inc. -// All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -#include "spelling/rulebased_filter.h" - diff --git a/src/spelling/rulebased_lm.cc b/src/spelling/rulebased_lm.cc deleted file mode 100644 index 93e6ec288..000000000 --- a/src/spelling/rulebased_lm.cc +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2010-2021, Google Inc. -// All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - diff --git a/src/spelling/rulebased_lm.h b/src/spelling/rulebased_lm.h deleted file mode 100644 index 59161776a..000000000 --- a/src/spelling/rulebased_lm.h +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2010-2021, Google Inc. -// All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -#ifndef MOZC_SPELLING_RULEBASED_LM_H_ -#define MOZC_SPELLING_RULEBASED_LM_H_ - -#endif // MOZC_SPELLING_RULEBASED_LM_H_ diff --git a/src/spelling/rulebased_lm_test.cc b/src/spelling/rulebased_lm_test.cc deleted file mode 100644 index 3c51b1073..000000000 --- a/src/spelling/rulebased_lm_test.cc +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2010-2021, Google Inc. -// All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -#include "spelling/rulebased_lm.h" - diff --git a/src/spelling/spellchecker_service.cc b/src/spelling/spellchecker_service.cc deleted file mode 100644 index 93e6ec288..000000000 --- a/src/spelling/spellchecker_service.cc +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2010-2021, Google Inc. -// All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - diff --git a/src/spelling/spellchecker_service.h b/src/spelling/spellchecker_service.h deleted file mode 100644 index 811fe2726..000000000 --- a/src/spelling/spellchecker_service.h +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2010-2021, Google Inc. -// All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -#ifndef MOZC_SPELLING_SPELLCHECKER_SERVICE_H_ -#define MOZC_SPELLING_SPELLCHECKER_SERVICE_H_ - -#endif // MOZC_SPELLING_SPELLCHECKER_SERVICE_H_ diff --git a/src/spelling/spellchecker_service_factory.cc b/src/spelling/spellchecker_service_factory.cc deleted file mode 100644 index 76408fca9..000000000 --- a/src/spelling/spellchecker_service_factory.cc +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2010-2021, Google Inc. -// All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -#include -#include - diff --git a/src/spelling/spellchecker_service_interface.h b/src/spelling/spellchecker_service_interface.h deleted file mode 100644 index 8a3ecd3eb..000000000 --- a/src/spelling/spellchecker_service_interface.h +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2010-2021, Google Inc. -// All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -#ifndef MOZC_SPELLING_SPELLCHECKER_SERVICE_INTERFACE_H_ -#define MOZC_SPELLING_SPELLCHECKER_SERVICE_INTERFACE_H_ - -#include -#include - -#include "engine/spellchecker_interface.h" -#include "protocol/engine_builder.pb.h" - -namespace mozc { -namespace spelling { - -class SpellCheckerServiceInterface : public engine::SpellcheckerInterface { - public: - virtual ~SpellCheckerServiceInterface() = default; - - // Loads spellchecker model asynchronously defined in the `request`. - // Returns false if the LoadAsync is already running. - virtual bool LoadAsync(const EngineReloadRequest &request) { return false; } - - // Loads spellchecker model defined in the `request`. - virtual EngineReloadResponse Load(const EngineReloadRequest &request) { - return EngineReloadResponse(); - } -}; - -} // namespace spelling -} // namespace mozc - -#endif // MOZC_SPELLING_SPELLCHECKER_SERVICE_INTERFACE_H_ diff --git a/src/spelling/spellchecker_service_main.cc b/src/spelling/spellchecker_service_main.cc deleted file mode 100644 index 613a015fd..000000000 --- a/src/spelling/spellchecker_service_main.cc +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2010-2021, Google Inc. -// All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -int main(int argc, char* argv[]) { - - return 0; -} diff --git a/src/spelling/spellchecker_service_registration.cc b/src/spelling/spellchecker_service_registration.cc deleted file mode 100644 index 93e6ec288..000000000 --- a/src/spelling/spellchecker_service_registration.cc +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2010-2021, Google Inc. -// All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - diff --git a/src/spelling/spellchecker_service_test.cc b/src/spelling/spellchecker_service_test.cc deleted file mode 100644 index a1ef3e107..000000000 --- a/src/spelling/spellchecker_service_test.cc +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2010-2021, Google Inc. -// All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -#include "spelling/spellchecker_service.h" - -#include -#include -#include -#include -#include -