summaryrefslogtreecommitdiff
path: root/src/account-server/storage.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-07-02 19:49:54 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-07-02 19:49:54 +0000
commite0ec0277143055e84ca0a5ebdf7e7a255f07c09a (patch)
tree1da65b334973b3b9924a76a63381543c63784677 /src/account-server/storage.cpp
parent7020d891b341d577fed97659e80de293bf27b062 (diff)
downloadmanaserv-e0ec0277143055e84ca0a5ebdf7e7a255f07c09a.tar.gz
manaserv-e0ec0277143055e84ca0a5ebdf7e7a255f07c09a.tar.bz2
manaserv-e0ec0277143055e84ca0a5ebdf7e7a255f07c09a.tar.xz
manaserv-e0ec0277143055e84ca0a5ebdf7e7a255f07c09a.zip
Cleaned prototypes and factored out duplicate code.
Diffstat (limited to 'src/account-server/storage.cpp')
-rw-r--r--src/account-server/storage.cpp82
1 files changed, 1 insertions, 81 deletions
diff --git a/src/account-server/storage.cpp b/src/account-server/storage.cpp
index a02ec010..efa6ca91 100644
--- a/src/account-server/storage.cpp
+++ b/src/account-server/storage.cpp
@@ -31,26 +31,6 @@ std::string Storage::mPassword("");
/**
- * Constructor.
- */
-Storage::Storage(void)
- throw()
-{
- // NOOP
-}
-
-
-/**
- * Destructor.
- */
-Storage::~Storage(void)
- throw()
-{
- // NOOP
-}
-
-
-/**
* Create an instance of Storage.
*/
Storage&
@@ -66,12 +46,11 @@ Storage::instance(const std::string& name)
return (*mInstance);
}
-
/**
* Delete the instance.
*/
void
-Storage::destroy(void)
+Storage::destroy()
{
if (mInstance != 0) {
delete mInstance;
@@ -84,62 +63,3 @@ Storage::destroy(void)
mPassword = "";
}
-
-/**
- * Check if the storage is open.
- */
-bool
-Storage::isOpen(void) const
-{
- return mIsOpen;
-}
-
-
-/**
- * Get the storage name.
- */
-const std::string&
-Storage::getName(void) const
-{
- return mName;
-}
-
-
-/**
- * Set a user name for the storage.
- */
-void
-Storage::setUser(const std::string& userName)
-{
- mUser = userName;
-}
-
-
-/**
- * Get the user name.
- */
-const std::string&
-Storage::getUser(void) const
-{
- return mUser;
-}
-
-
-/**
- * Set a user password for the storage.
- */
-void
-Storage::setPassword(const std::string& password)
-{
- mPassword = password;
-}
-
-
-/**
- * Get the user password.
- */
-const std::string&
-Storage::getPassword(void) const
-{
- return mPassword;
-}