summaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/template.php')
-rw-r--r--lib/template.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/template.php b/lib/template.php
index ae9ea187445..08df168afc6 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -84,24 +84,6 @@ function human_file_size( $bytes ) {
return OC_Helper::humanFileSize( $bytes );
}
-function simple_file_size($bytes) {
- if ($bytes < 0) {
- return '?';
- }
- $mbytes = round($bytes / (1024 * 1024), 1);
- if ($bytes == 0) {
- return '0';
- }
- if ($mbytes < 0.1) {
- return '&lt; 0.1';
- }
- if ($mbytes > 1000) {
- return '&gt; 1000';
- } else {
- return number_format($mbytes, 1);
- }
-}
-
function relative_modified_date($timestamp) {
$l=OC_L10N::get('lib');
$timediff = time() - $timestamp;