summaryrefslogtreecommitdiffstats
path: root/chromeos
diff options
context:
space:
mode:
authoryoichio@chromium.org <yoichio@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-28 10:36:55 +0000
committeryoichio@chromium.org <yoichio@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-28 10:36:55 +0000
commit9065d8071b80d9b482349f99ed0b9c79280c8f32 (patch)
tree228ae7c241511a747d30473ae60ed1eb6f49182f /chromeos
parentbb015e6a76bd87dabfdaaaba2ab7ec3b4b6427a5 (diff)
downloadchromium_src-9065d8071b80d9b482349f99ed0b9c79280c8f32.zip
chromium_src-9065d8071b80d9b482349f99ed0b9c79280c8f32.tar.gz
chromium_src-9065d8071b80d9b482349f99ed0b9c79280c8f32.tar.bz2
Remove an unused IBus related type InputMethodConfig.
BUG=N/A Review URL: https://codereview.chromium.org/94033002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237758 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos')
-rw-r--r--chromeos/chromeos.gyp2
-rw-r--r--chromeos/ime/input_method_config.cc49
-rw-r--r--chromeos/ime/input_method_config.h44
-rw-r--r--chromeos/ime/input_method_manager.h1
4 files changed, 0 insertions, 96 deletions
diff --git a/chromeos/chromeos.gyp b/chromeos/chromeos.gyp
index c909079..4bac779 100644
--- a/chromeos/chromeos.gyp
+++ b/chromeos/chromeos.gyp
@@ -209,8 +209,6 @@
'ime/ibus_keymap.h',
'ime/ibus_text.cc',
'ime/ibus_text.h',
- 'ime/input_method_config.cc',
- 'ime/input_method_config.h',
'ime/input_method_delegate.h',
'ime/input_method_descriptor.cc',
'ime/input_method_descriptor.h',
diff --git a/chromeos/ime/input_method_config.cc b/chromeos/ime/input_method_config.cc
deleted file mode 100644
index 657550d..0000000
--- a/chromeos/ime/input_method_config.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chromeos/ime/input_method_config.h"
-
-#include <sstream>
-
-#include "base/logging.h"
-
-namespace chromeos {
-namespace input_method {
-
-InputMethodConfigValue::InputMethodConfigValue()
- : type(kValueTypeString),
- int_value(0),
- bool_value(false) {
-}
-
-InputMethodConfigValue::~InputMethodConfigValue() {
-}
-
-std::string InputMethodConfigValue::ToString() const {
- std::stringstream stream;
- stream << "type=" << type;
- switch (type) {
- case kValueTypeString:
- stream << ", string_value=" << string_value;
- break;
- case kValueTypeInt:
- stream << ", int_value=" << int_value;
- break;
- case kValueTypeBool:
- stream << ", bool_value=" << (bool_value ? "true" : "false");
- break;
- case kValueTypeStringList:
- stream << ", string_list_value=";
- for (size_t i = 0; i < string_list_value.size(); ++i) {
- if (i)
- stream << ",";
- stream << string_list_value[i];
- }
- break;
- }
- return stream.str();
-}
-
-} // namespace input_method
-} // namespace chromeos
diff --git a/chromeos/ime/input_method_config.h b/chromeos/ime/input_method_config.h
deleted file mode 100644
index 7012dd0..0000000
--- a/chromeos/ime/input_method_config.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROMEOS_IME_INPUT_METHOD_CONFIG_H_
-#define CHROMEOS_IME_INPUT_METHOD_CONFIG_H_
-
-#include <string>
-#include <vector>
-#include "chromeos/chromeos_export.h"
-
-namespace chromeos {
-namespace input_method {
-
-// A structure which represents a value of an input method configuration item.
-// This struct is used by SetInputMethodConfig().
-struct CHROMEOS_EXPORT InputMethodConfigValue {
- InputMethodConfigValue();
- ~InputMethodConfigValue();
-
- // Debug print function.
- std::string ToString() const;
-
- enum ValueType {
- kValueTypeString = 0,
- kValueTypeInt,
- kValueTypeBool,
- kValueTypeStringList,
- };
-
- // A value is stored on |string_value| member if |type| is kValueTypeString.
- // The same is true for other enum values.
- ValueType type;
-
- std::string string_value;
- int int_value;
- bool bool_value;
- std::vector<std::string> string_list_value;
-};
-
-} // namespace input_method
-} // namespace chromeos
-
-#endif // CHROMEOS_IME_INPUT_METHOD_CONFIG_H_
diff --git a/chromeos/ime/input_method_manager.h b/chromeos/ime/input_method_manager.h
index 3d5666e..5a3c1fa 100644
--- a/chromeos/ime/input_method_manager.h
+++ b/chromeos/ime/input_method_manager.h
@@ -11,7 +11,6 @@
#include "base/memory/scoped_ptr.h"
#include "chromeos/chromeos_export.h"
-#include "chromeos/ime/input_method_config.h"
#include "chromeos/ime/input_method_descriptor.h"
#include "chromeos/ime/input_method_property.h"