From e27f200856c7766c58399fbf3059b6a80495d9b6 Mon Sep 17 00:00:00 2001 From: Scott Walters Date: Sat, 16 Feb 2013 18:52:39 -0500 Subject: [PATCH] remove Moose::Deprecated deprecation for updateProfileFields and remove the last remaining use of it from the code; Moose::Deprecated is failing on 5.10, which is still the default for CentOS and probably will be for a few more epochs --- lib/WebGUI/Operation/Profile.pm | 4 ++-- lib/WebGUI/User.pm | 16 ---------------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/lib/WebGUI/Operation/Profile.pm b/lib/WebGUI/Operation/Profile.pm index 9ca7bd60c..d88099c41 100644 --- a/lib/WebGUI/Operation/Profile.pm +++ b/lib/WebGUI/Operation/Profile.pm @@ -95,7 +95,7 @@ sub isDuplicateEmail { Saves profile data to a user's profile. Does not validate any of the data. DEPRECATED - This method is deprecated, and should not be used in new code. Use -the updateProfileFields method in WebGUI::User +the update method in WebGUI::User =head3 session @@ -115,7 +115,7 @@ sub saveProfileFields { my $session = shift; my $u = shift; my $profile = shift; - $u->updateProfileFields($profile); + $u->update($profile); } #------------------------------------------------------------------- diff --git a/lib/WebGUI/User.pm b/lib/WebGUI/User.pm index 5f9eeeab7..398cdd8f5 100644 --- a/lib/WebGUI/User.pm +++ b/lib/WebGUI/User.pm @@ -1516,22 +1516,6 @@ sub update { #------------------------------------------------------------------- -=head2 updateProfileFields ( profile ) - -DEPRECATED! Use update(profile) - -Saves profile data to a user's profile. Does not validate any of the data. - -=head3 profile - -Hash ref of key/value pairs of data in the users's profile to update. - -=cut - -deprecate updateProfileFields => 'update'; - -#------------------------------------------------------------------- - =head2 username ( [ value ] ) Returns the username.