diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-06-24 23:13:37 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-06-24 23:13:37 -0500 |
commit | 084f6cdc08117e26c34a8c6afa00735bd3d75b4a (patch) | |
tree | e5b20a525aeb85d3be971b8dd96afec263fac6f6 /tests/backend-dbus | |
parent | 3882e60f88c19b4522a08145230b7101c1a127d3 (diff) | |
download | ayatana-indicator-session-084f6cdc08117e26c34a8c6afa00735bd3d75b4a.tar.gz ayatana-indicator-session-084f6cdc08117e26c34a8c6afa00735bd3d75b4a.tar.bz2 ayatana-indicator-session-084f6cdc08117e26c34a8c6afa00735bd3d75b4a.zip |
remove unused method MockAccounts::find_by_path()
Diffstat (limited to 'tests/backend-dbus')
-rw-r--r-- | tests/backend-dbus/mock-accounts.cc | 12 | ||||
-rw-r--r-- | tests/backend-dbus/mock-accounts.h | 1 |
2 files changed, 0 insertions, 13 deletions
diff --git a/tests/backend-dbus/mock-accounts.cc b/tests/backend-dbus/mock-accounts.cc index 2a0e7e7..c753c79 100644 --- a/tests/backend-dbus/mock-accounts.cc +++ b/tests/backend-dbus/mock-accounts.cc @@ -70,18 +70,6 @@ MockAccounts :: find_by_uid (guint64 uid) } MockUser * -MockAccounts :: find_by_path (const char * path) -{ - const path_to_user_t::iterator it (my_path_to_user.find(path)); - - if (it != my_path_to_user.end()) - return it->second; - - g_warn_if_reached (); - return 0; -} - -MockUser * MockAccounts :: find_by_username (const char * username) { const username_to_user_t::iterator it (my_username_to_user.find(username)); diff --git a/tests/backend-dbus/mock-accounts.h b/tests/backend-dbus/mock-accounts.h index 95da102..8032441 100644 --- a/tests/backend-dbus/mock-accounts.h +++ b/tests/backend-dbus/mock-accounts.h @@ -40,7 +40,6 @@ class MockAccounts: public MockObject void remove_user (MockUser * user); size_t size() const { return my_users.size(); } MockUser * find_by_uid (guint64 uid); - MockUser * find_by_path (const char * path); MockUser * find_by_username (const char * username); private: |