[ekiga] Remove now useless get_bool_property and the like
- From: Eugen Dedu <ededu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Remove now useless get_bool_property and the like
- Date: Thu, 19 Nov 2015 09:26:28 +0000 (UTC)
commit 6a3b07c225758405221a318f0b9078a0bda81ad2
Author: Eugen Dedu <eugen dedu univ-fcomte fr>
Date: Thu Nov 19 10:25:20 2015 +0100
Remove now useless get_bool_property and the like
The now removed libnotify plugin needed them.
lib/engine/framework/services.cpp | 24 ------------------------
lib/engine/framework/services.h | 16 ----------------
2 files changed, 0 insertions(+), 40 deletions(-)
---
diff --git a/lib/engine/framework/services.cpp b/lib/engine/framework/services.cpp
index 28a3117..2d19b5c 100644
--- a/lib/engine/framework/services.cpp
+++ b/lib/engine/framework/services.cpp
@@ -44,30 +44,6 @@
#include "services.h"
-boost::optional<bool>
-Ekiga::Service::get_bool_property (const std::string /*name*/) const
-{
- boost::optional<bool> result;
-
- return result;
-}
-
-boost::optional<int>
-Ekiga::Service::get_int_property (const std::string /*name*/) const
-{
- boost::optional<int> result;
-
- return result;
-}
-
-boost::optional<std::string>
-Ekiga::Service::get_string_property (const std::string /*name*/) const
-{
- boost::optional<std::string> result;
-
- return result;
-}
-
Ekiga::ServiceCore::ServiceCore (): closed(false)
{
}
diff --git a/lib/engine/framework/services.h b/lib/engine/framework/services.h
index 531f1b7..7c08d4e 100644
--- a/lib/engine/framework/services.h
+++ b/lib/engine/framework/services.h
@@ -64,22 +64,6 @@ namespace Ekiga
virtual const std::string get_name () const = 0;
virtual const std::string get_description () const = 0;
-
- /* beware that if you check the result directly (in an if, or passing it
- * through a function, the obtained value will be wether or not the value
- * is available, and not the value itself!
- *
- * To be more specific, you're supposed to:
- * val = foo.get_bool_property ("bar");
- * if (val) {
- * <do something with *val> (notice *val not val!)
- * }
- */
- virtual boost::optional<bool> get_bool_property (const std::string) const;
-
- virtual boost::optional<int> get_int_property (const std::string) const;
-
- virtual boost::optional<std::string> get_string_property (const std::string) const;
};
typedef boost::shared_ptr<Service> ServicePtr;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]