[glibmm] Glib::Source: Remove get_current_time() from main.h
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Glib::Source: Remove get_current_time() from main.h
- Date: Fri, 17 Nov 2017 09:56:35 +0000 (UTC)
commit c29958ff2e120e97f09420cd37e59749859bd10b
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Fri Nov 17 10:54:32 2017 +0100
Glib::Source: Remove get_current_time() from main.h
get_current_time() is a deprecated function that was removed from
main.cc by commit 45cc8f8f8cb093a9e8aa8747af93c57941e1b32a
glib/glibmm/main.cc | 2 --
glib/glibmm/main.h | 12 ------------
2 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/glib/glibmm/main.cc b/glib/glibmm/main.cc
index f180d28..b0e7c3c 100644
--- a/glib/glibmm/main.cc
+++ b/glib/glibmm/main.cc
@@ -14,8 +14,6 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <glibmmconfig.h> // May define GLIBMM_DISABLE_DEPRECATED
-
#include <glibmm/main.h>
#include <glibmm/exceptionhandler.h>
#include <glibmm/wrap.h>
diff --git a/glib/glibmm/main.h b/glib/glibmm/main.h
index a116496..7a08018 100644
--- a/glib/glibmm/main.h
+++ b/glib/glibmm/main.h
@@ -17,7 +17,6 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <glibmmconfig.h>
#include <glibmm/refptr.h>
#include <glibmm/timeval.h>
#include <glibmm/priorities.h>
@@ -739,17 +738,6 @@ protected:
*/
void remove_poll(PollFD& poll_fd);
-#ifndef GLIBMM_DISABLE_DEPRECATED
- /** Gets the "current time" to be used when checking this source. The advantage of calling this
- * function over calling get_current_time() directly is that when checking multiple sources, GLib
- * can cache a single value instead of having to repeatedly get the system time.
- * @param current_time Glib::TimeVal in which to store current time.
- *
- * @deprecated Use get_time() instead.
- */
- void get_current_time(Glib::TimeVal& current_time);
-#endif // GLIBMM_DISABLE_DEPRECATED
-
// TODO: Remove mention of g_get_monotonic time when we wrap it in C++.
/** Gets the time to be used when checking this source. The advantage of
* calling this function over calling g_get_monotonic_time() directly is
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]