[03/10] testbot/Users: Remove the unused current user tracking code.

Francois Gouget fgouget at codeweavers.com
Wed Apr 3 09:57:25 CDT 2013


Only the web modules have a concept of a 'current user' and they track him through his session and the PageBase.pm module.
---
 testbot/lib/WineTestBot/Users.pm |   15 ++-------------
 1 file changed, 2 insertions(+), 13 deletions(-)

diff --git a/testbot/lib/WineTestBot/Users.pm b/testbot/lib/WineTestBot/Users.pm
index 54c07bf..f29fd5e 100644
--- a/testbot/lib/WineTestBot/Users.pm
+++ b/testbot/lib/WineTestBot/Users.pm
@@ -310,12 +310,11 @@ use WineTestBot::Config;
 use WineTestBot::UserRoles;
 use WineTestBot::WineTestBotObjects;
 
-use vars qw (@ISA @EXPORT @PropertyDescriptors $CurrentUser);
+use vars qw (@ISA @EXPORT @PropertyDescriptors);
 
 require Exporter;
 @ISA = qw(WineTestBot::WineTestBotCollection Exporter);
- at EXPORT = qw(&CreateUsers &SetCurrentUser &GetCurrentUser &GetBatchUser
-             &Authenticate);
+ at EXPORT = qw(&CreateUsers &GetBatchUser &Authenticate);
 
 BEGIN
 {
@@ -414,14 +413,4 @@ sub GetBatchUser
   return $class->CreateUsers()->GetItem("batch");
 }
 
-sub SetCurrentUser
-{
-  $CurrentUser = shift;
-}
-
-sub GetCurrentUser
-{
-  return $CurrentUser;
-}
-
 1;
-- 
1.7.10.4




More information about the wine-patches mailing list