Francois Gouget : testbot/Users: Remove the unused current user tracking code.
Module: tools Branch: master Commit: c2b91aa379043a5555bc2eaafe47b2bc35f9acc9 URL: http://source.winehq.org/git/tools.git/?a=commit;h=c2b91aa379043a5555bc2eaaf... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Wed Apr 3 16:57:25 2013 +0200 testbot/Users: Remove the unused current user tracking code. 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 files 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); -(a)EXPORT = qw(&CreateUsers &SetCurrentUser &GetCurrentUser &GetBatchUser - &Authenticate); +(a)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;
participants (1)
-
Alexandre Julliard