diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2012-10-02 23:24:01 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2012-10-02 23:24:18 +0200 |
commit | e6941da4ce8389784c89400577b5244ec0794de5 (patch) | |
tree | 67a0d6b29bb73583ac28fe33c6a96651622d6e29 | |
parent | 775ddeb04e750c30b9e4c489a61f46cb0f5b9fa9 (diff) |
Remove unused SpiceController constructor
This has the side-effect of getting rid of some code duplication.
-rw-r--r-- | controller.cpp | 10 | ||||
-rw-r--r-- | controller.h | 1 |
2 files changed, 0 insertions, 11 deletions
diff --git a/controller.cpp b/controller.cpp index ada6112..9934a1e 100644 --- a/controller.cpp +++ b/controller.cpp @@ -68,16 +68,6 @@ SpiceController::SpiceController(): m_tmp_dir = mkdtemp(tmp_dir); } -SpiceController::SpiceController(const std::string &name): - m_client_socket(-1), - m_name(name), - m_pid_controller(-1) -{ - // create temporary directory in /tmp - char tmp_dir[] = "/tmp/spicec-XXXXXX"; - m_tmp_dir = mkdtemp(tmp_dir); -} - SpiceController::~SpiceController() { g_debug(G_STRFUNC); diff --git a/controller.h b/controller.h index 46ba12d..672e00e 100644 --- a/controller.h +++ b/controller.h @@ -68,7 +68,6 @@ class SpiceController { public: SpiceController(); - SpiceController(const std::string &name); ~SpiceController(); bool InitSocket(void); |