diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-03-01 11:30:50 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-03-01 11:30:50 +0000 |
commit | c1bf5ab8409d2c2b29b6d6a34d6ecac2423ac005 (patch) | |
tree | 34139144d1e1e692333725a30e52b534590024a7 /searchcore | |
parent | 4632b860d1576d049b1c86741b05443beb26e379 (diff) |
GC unused functionality.
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/server/fileconfigmanager.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/fileconfigmanager.cpp b/searchcore/src/vespa/searchcore/proton/server/fileconfigmanager.cpp index c16a89f4e2b..7ee6a02d03e 100644 --- a/searchcore/src/vespa/searchcore/proton/server/fileconfigmanager.cpp +++ b/searchcore/src/vespa/searchcore/proton/server/fileconfigmanager.cpp @@ -95,7 +95,6 @@ class ConfigFile using SP = std::shared_ptr<ConfigFile>; vespalib::string _name; - vespalib::system_time _modTime; std::vector<char> _content; public: @@ -111,7 +110,6 @@ public: ConfigFile::ConfigFile() : _name(), - _modTime(), _content() { } @@ -120,7 +118,6 @@ ConfigFile::~ConfigFile() = default; ConfigFile::ConfigFile(const vespalib::string &name, const vespalib::string &fullName) : _name(name), - _modTime(), _content() { FastOS_File file; @@ -130,7 +127,6 @@ ConfigFile::ConfigFile(const vespalib::string &name, const vespalib::string &ful int64_t fileSize = file.getSize(); _content.resize(fileSize); file.ReadBuf(_content.data(), fileSize); - _modTime = file.getModificationTime(); } nbostream & @@ -138,7 +134,7 @@ ConfigFile::serialize(nbostream &stream) const { assert(strchr(_name.c_str(), '/') == nullptr); stream << _name; - stream << vespalib::count_s(_modTime.time_since_epoch()); + stream << int64_t(0ul); // Used to be modtime => unused uint32_t sz = _content.size(); stream << sz; stream.write(_content.data(), sz); @@ -150,9 +146,8 @@ ConfigFile::deserialize(nbostream &stream) { stream >> _name; assert(strchr(_name.c_str(), '/') == nullptr); - int64_t modTime; - stream >> modTime; - _modTime = vespalib::system_time(vespalib::from_s(modTime)); + int64_t unused_modTime; + stream >> unused_modTime; uint32_t sz; stream >> sz; _content.resize(sz); |