Commit 1b5ec3e3 authored by Max Kellermann's avatar Max Kellermann

lib/nfs/Glue: eliminate class NfsGlue

It's just a useless wrapper for class NfsManager.
parent fb4e6ac9
...@@ -23,23 +23,7 @@ ...@@ -23,23 +23,7 @@
#include "IOThread.hxx" #include "IOThread.hxx"
#include "util/Manual.hxx" #include "util/Manual.hxx"
class NfsGlue { static Manual<NfsManager> nfs_glue;
NfsManager manager;
public:
NfsGlue(EventLoop &_loop)
:manager(_loop) {}
~NfsGlue() {
//assert(open_uri.empty());
}
NfsConnection &GetConnection(const char *server, const char *export_name) {
return manager.GetConnection(server, export_name);
}
};
static Manual<NfsGlue> nfs_glue;
static unsigned in_use; static unsigned in_use;
void void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment