You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2016/02/29 01:14:18 UTC
mesos git commit: Remove unused src/common/date_utils.{c,
h}pp (MESOS-4792).
Repository: mesos
Updated Branches:
refs/heads/master f5b2253f5 -> c5a40c03f
Remove unused src/common/date_utils.{c,h}pp (MESOS-4792).
Review: https://reviews.apache.org/r/44147/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/c5a40c03
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/c5a40c03
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/c5a40c03
Branch: refs/heads/master
Commit: c5a40c03fc0e705b92826afa486535bb42e74e7b
Parents: f5b2253
Author: Yong Tang <yo...@outlook.com>
Authored: Sun Feb 28 16:14:01 2016 -0800
Committer: Jie Yu <yu...@gmail.com>
Committed: Sun Feb 28 16:14:01 2016 -0800
----------------------------------------------------------------------
src/CMakeLists.txt | 1 -
src/Makefile.am | 2 --
src/common/date_utils.cpp | 41 -----------------------------------------
src/common/date_utils.hpp | 39 ---------------------------------------
src/master/master.cpp | 1 -
5 files changed, 84 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/c5a40c03/src/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 49a5645..e494556 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -106,7 +106,6 @@ set(AUTHORIZER_SRC
set(COMMON_SRC
common/attributes.cpp
common/command_utils.cpp
- common/date_utils.cpp
common/http.cpp
common/protobuf_utils.cpp
common/resources.cpp
http://git-wip-us.apache.org/repos/asf/mesos/blob/c5a40c03/src/Makefile.am
----------------------------------------------------------------------
diff --git a/src/Makefile.am b/src/Makefile.am
index 2a26261..3c015a4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -594,7 +594,6 @@ libmesos_no_3rdparty_la_SOURCES += \
authorizer/local/authorizer.cpp \
common/attributes.cpp \
common/command_utils.cpp \
- common/date_utils.cpp \
common/http.cpp \
common/protobuf_utils.cpp \
common/resources.cpp \
@@ -704,7 +703,6 @@ libmesos_no_3rdparty_la_SOURCES += \
authorizer/local/authorizer.hpp \
common/build.hpp \
common/command_utils.hpp \
- common/date_utils.hpp \
common/http.hpp \
common/parse.hpp \
common/protobuf_utils.hpp \
http://git-wip-us.apache.org/repos/asf/mesos/blob/c5a40c03/src/common/date_utils.cpp
----------------------------------------------------------------------
diff --git a/src/common/date_utils.cpp b/src/common/date_utils.cpp
deleted file mode 100644
index 64eb33f..0000000
--- a/src/common/date_utils.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-#include <time.h>
-
-#include "date_utils.hpp"
-
-using std::string;
-
-namespace mesos {
-namespace internal {
-namespace DateUtils {
-
-// Get the current date in the format used for Mesos IDs (YYYYMMDD-hhmmss).
-string currentDate()
-{
- time_t rawtime;
- struct tm* timeinfo;
- time(&rawtime);
- timeinfo = localtime(&rawtime);
- char date[32];
- strftime(date, sizeof(date), "%Y%m%d-%H%M%S", timeinfo);
- return string(date);
-}
-
-} // namespace DateUtils {
-} // namespace internal {
-} // namespace mesos {
http://git-wip-us.apache.org/repos/asf/mesos/blob/c5a40c03/src/common/date_utils.hpp
----------------------------------------------------------------------
diff --git a/src/common/date_utils.hpp b/src/common/date_utils.hpp
deleted file mode 100644
index 794510c..0000000
--- a/src/common/date_utils.hpp
+++ /dev/null
@@ -1,39 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-#ifndef __DATE_UTILS_HPP__
-#define __DATE_UTILS_HPP__
-
-#include <string>
-
-namespace mesos {
-namespace internal {
-
-/**
- * Utility functions for dealing with dates.
- */
-namespace DateUtils {
-/**
- * Get the current date in the format used for Mesos IDs (YYYYMMDD-hhmmss).
- */
-std::string currentDate();
-
-
-} // namespace DateUtils {
-} // namespace internal {
-} // namespace mesos {
-
-#endif
http://git-wip-us.apache.org/repos/asf/mesos/blob/c5a40c03/src/master/master.cpp
----------------------------------------------------------------------
diff --git a/src/master/master.cpp b/src/master/master.cpp
index 7c62f2a..f242b70 100644
--- a/src/master/master.cpp
+++ b/src/master/master.cpp
@@ -71,7 +71,6 @@
#include "authentication/cram_md5/authenticator.hpp"
#include "common/build.hpp"
-#include "common/date_utils.hpp"
#include "common/protobuf_utils.hpp"
#include "common/status_utils.hpp"