Skip to content

Commit

Permalink
Drop setTimestamp method (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
awegrzyn authored Nov 29, 2018
1 parent a409eda commit 4d81470
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 37 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ target_compile_features(Monitoring PUBLIC cxx_std_17)
set(EXAMPLES
examples/1-Basic.cxx
examples/2-TaggedMetrics.cxx
examples/3-UserDefinedTimestamp
examples/4-RateDerivedMetric.cxx
examples/5-Benchmark.cxx
examples/6-Increment.cxx
Expand Down
25 changes: 0 additions & 25 deletions examples/3-UserDefinedTimestamp.cxx

This file was deleted.

5 changes: 0 additions & 5 deletions include/Monitoring/Metric.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,6 @@ class Metric
/// \return vector of tags
std::vector<Tag> getTags() const;

/// Sets user defined timestamp
/// \param timestamp timestamp to set
/// \return r-value to "this" - to be able to chain methods
Metric&& setTimestamp(std::chrono::time_point<std::chrono::system_clock>& timestamp);

/// Add user defined tags
/// \param tags r-value to vector of tags
/// \return r-value to "this" - to be able to chain methods
Expand Down
6 changes: 0 additions & 6 deletions src/Metric.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,6 @@ Metric&& Metric::addTags(std::vector<Tag>&& tags)
return std::move(*this);
}

Metric&& Metric::setTimestamp(std::chrono::time_point<std::chrono::system_clock>& timestamp)
{
mTimestamp = timestamp;
return std::move(*this);
}

std::vector<Tag> Metric::getTags() const
{
return tagSet;
Expand Down

0 comments on commit 4d81470

Please sign in to comment.