You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2019/06/15 16:22:41 UTC

[trafficserver] 11/23: Step 11: Removes statVersion()

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 33cc9e243047615b76b279c5ee4690c369c4d962
Author: Leif Hedstrom <zw...@apache.org>
AuthorDate: Fri May 24 16:49:43 2019 -0600

    Step 11: Removes statVersion()
---
 mgmt/Rollback.cc | 12 ------------
 mgmt/Rollback.h  |  1 -
 2 files changed, 13 deletions(-)

diff --git a/mgmt/Rollback.cc b/mgmt/Rollback.cc
index e56fa32..a669f55 100644
--- a/mgmt/Rollback.cc
+++ b/mgmt/Rollback.cc
@@ -257,18 +257,6 @@ Rollback::extractVersionInfo(ExpandingArray *listNames, const char *testFileName
   return version;
 }
 
-int
-Rollback::statVersion(version_t version, struct stat *buf)
-{
-  int r;
-
-  ink_mutex_acquire(&fileAccessLock);
-  r = this->statFile(version, buf);
-  ink_mutex_release(&fileAccessLock);
-
-  return r;
-}
-
 bool
 Rollback::setLastModifiedTime()
 {
diff --git a/mgmt/Rollback.h b/mgmt/Rollback.h
index 27b1bbc..9f9a7e8 100644
--- a/mgmt/Rollback.h
+++ b/mgmt/Rollback.h
@@ -117,7 +117,6 @@ public:
 
   // Automatically take out lock
   bool checkForUserUpdate();
-  int statVersion(version_t, struct stat *buf);
   bool setLastModifiedTime();
 
   // Lock not necessary since these are only valid for a