diff options
author | Matt Selsky <selsky@columbia.edu> | 2012-04-26 13:42:55 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-04-26 13:42:55 +0200 |
commit | fb2f6bd8ca4ed8879f82a2764d63d51a06670477 (patch) | |
tree | ba20382558ba25b21f56f40704e03acd76b7306a /Bugzilla | |
parent | 870deda4a2f8f4a427612127da8dde57294585e8 (diff) | |
download | bugzilla-fb2f6bd8ca4ed8879f82a2764d63d51a06670477.tar.gz bugzilla-fb2f6bd8ca4ed8879f82a2764d63d51a06670477.tar.xz |
Bug 747189: Remove Bugzilla::Util::file_mod_time()
r/a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Util.pm | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm index 097fc49fe..9e2e1fecd 100644 --- a/Bugzilla/Util.pm +++ b/Bugzilla/Util.pm @@ -18,8 +18,7 @@ use base qw(Exporter); diff_arrays on_main_db say trim wrap_hard wrap_comment find_wrap_point format_time validate_date validate_time datetime_from - file_mod_time is_7bit_clean - bz_crypt generate_random_password + is_7bit_clean bz_crypt generate_random_password validate_email_syntax check_email_syntax clean_text get_text template_var disable_utf8 detect_encoding); @@ -560,14 +559,6 @@ sub datetime_from { return $dt; } -sub file_mod_time { - my ($filename) = (@_); - my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, - $atime,$mtime,$ctime,$blksize,$blocks) - = stat($filename); - return $mtime; -} - sub bz_crypt { my ($password, $salt) = @_; @@ -849,9 +840,6 @@ Bugzilla::Util - Generic utility functions for bugzilla format_time($time); datetime_from($time, $timezone); - # Functions for dealing with files - $time = file_mod_time($filename); - # Cryptographic Functions $crypted_password = bz_crypt($password); $new_password = generate_random_password($password_length); @@ -1119,18 +1107,6 @@ the Bugzilla server's local timezone if there isn't a logged-in user. =back - -=head2 Files - -=over 4 - -=item C<file_mod_time($filename)> - -Takes a filename and returns the modification time. It returns it in the format -of the "mtime" parameter of the perl "stat" function. - -=back - =head2 Cryptography =over 4 |