summaryrefslogtreecommitdiff
path: root/src/FileEntry.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FileEntry.cc')
-rw-r--r--src/FileEntry.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/FileEntry.cc b/src/FileEntry.cc
index d98dcd91..bd26a1be 100644
--- a/src/FileEntry.cc
+++ b/src/FileEntry.cc
@@ -104,9 +104,9 @@ void FileEntry::getUris(std::vector<std::string>& uris) const
uris.insert(uris.end(), uris_.begin(), uris_.end());
}
+namespace {
template<typename InputIterator, typename OutputIterator>
-static OutputIterator
-enumerateInFlightHosts
+OutputIterator enumerateInFlightHosts
(InputIterator first, InputIterator last, OutputIterator out)
{
for(; first != last; ++first) {
@@ -117,6 +117,7 @@ enumerateInFlightHosts
}
return out;
}
+} // namespace
SharedHandle<Request>
FileEntry::getRequest
@@ -371,8 +372,9 @@ void FileEntry::releaseRuntimeResource()
inFlightRequests_.clear();
}
+namespace {
template<typename InputIterator, typename T>
-static InputIterator findRequestByUri
+InputIterator findRequestByUri
(InputIterator first, InputIterator last, const T& uri)
{
for(; first != last; ++first) {
@@ -382,6 +384,7 @@ static InputIterator findRequestByUri
}
return last;
}
+} // namespace
bool FileEntry::removeUri(const std::string& uri)
{