geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbarr...@apache.org
Subject [geode-native] branch develop updated: GEODE-3605: Remove deprecated methods from public API
Date Thu, 02 Nov 2017 23:05:07 GMT
This is an automated email from the ASF dual-hosted git repository.

jbarrett pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git


The following commit(s) were added to refs/heads/develop by this push:
     new d2cda36  GEODE-3605: Remove deprecated methods from public API
d2cda36 is described below

commit d2cda36bdc7bc4b0f331fc29ad817e79c1dfbdf2
Author: David Kimura <dkimura@pivotal.io>
AuthorDate: Thu Nov 2 14:47:25 2017 -0700

    GEODE-3605: Remove deprecated methods from public API
---
 cppcache/include/geode/CacheableDate.hpp | 21 ---------------------
 cppcache/src/CacheableDate.cpp           | 21 ---------------------
 2 files changed, 42 deletions(-)

diff --git a/cppcache/include/geode/CacheableDate.hpp b/cppcache/include/geode/CacheableDate.hpp
index 99dce9c..a4a44db 100644
--- a/cppcache/include/geode/CacheableDate.hpp
+++ b/cppcache/include/geode/CacheableDate.hpp
@@ -90,27 +90,6 @@ class CPPCACHE_EXPORT CacheableDate : public CacheableKey {
   /** @return true if this key matches other. */
   virtual bool operator==(const CacheableKey& other) const;
 
-  /**
-   * @return day of the month.
-   * @deprecated Use localtime or similar for calendar conversions.
-   */
-  __DEPRECATED__("Use localtime or similar for calendar conversions.")
-  virtual int day() const;
-
-  /**
-   * @return month 1(Jan) - 12(Dec) .
-   * @deprecated Use localtime or similar for calendar conversions.
-   */
-  __DEPRECATED__("Use localtime or similar for calendar conversions.")
-  virtual int month() const;
-
-  /**
-   * @return year, example 1999.
-   * @deprecated Use localtime or similar for calendar conversions.
-   */
-  __DEPRECATED__("Use localtime or similar for calendar conversions.")
-  virtual int year() const;
-
   /** @return milliseconds elapsed since January 1, 1970, 00:00:00 GMT. */
   virtual int64_t milliseconds() const;
 
diff --git a/cppcache/src/CacheableDate.cpp b/cppcache/src/CacheableDate.cpp
index 04b7b7b..da8220b 100644
--- a/cppcache/src/CacheableDate.cpp
+++ b/cppcache/src/CacheableDate.cpp
@@ -60,27 +60,6 @@ bool CacheableDate::operator==(const CacheableKey& other) const {
   return m_timevalue == otherDt.m_timevalue;
 }
 
-int CacheableDate::day() const {
-  struct tm date = {0};
-  time_t sec = m_timevalue / 1000;
-  ACE_OS::localtime_r(&sec, &date);
-  return date.tm_mday;
-}
-
-int CacheableDate::month() const {
-  struct tm date = {0};
-  time_t sec = m_timevalue / 1000;
-  ACE_OS::localtime_r(&sec, &date);
-  return date.tm_mon + 1;
-}
-
-int CacheableDate::year() const {
-  struct tm date = {0};
-  time_t sec = m_timevalue / 1000;
-  ACE_OS::localtime_r(&sec, &date);
-  return date.tm_year + 1900;
-}
-
 int64_t CacheableDate::milliseconds() const { return m_timevalue; }
 
 int32_t CacheableDate::hashcode() const {

-- 
To stop receiving notification emails like this one, please contact
['"commits@geode.apache.org" <commits@geode.apache.org>'].

Mime
View raw message