Skip to content

Commit

Permalink
Update UploadedFile.class.php
Browse files Browse the repository at this point in the history
crc32 isn't used
  • Loading branch information
nokonoko committed Jun 13, 2015
1 parent ba0dd80 commit ea6a7a0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions static/classes/UploadedFile.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,5 @@ public function get_sha1 () {

return $this->sha1;
}

/**
* Generates the CRC32 or returns the cached CRC32 hash for the file.
*
* @return string
*/
public function get_crc32 () {
if (!$this->crc32)
$this->crc32 = hash_file('crc32b', $this->tempfile);

return $this->crc32;
}
}
?>

0 comments on commit ea6a7a0

Please sign in to comment.