]> git.mxchange.org Git - friendica.git/commitdiff
removed no longer old stuff, let's don't stuff code with commented-out code
authorRoland Haeder <roland@mxchange.org>
Thu, 23 Mar 2017 21:10:37 +0000 (22:10 +0100)
committerRoland Haeder <roland@mxchange.org>
Thu, 23 Mar 2017 21:11:58 +0000 (22:11 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
boot.php

index a3f25d059f3a35783383ded5db6c8aac6b38ba69..87fce11ec8055850a8aaa07c8943e76ad94ba476 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -1032,29 +1032,6 @@ class App {
 
        function get_cached_avatar_image($avatar_image){
                return $avatar_image;
-
-               // The following code is deactivated. It doesn't seem to make any sense and it slows down the system.
-               /*
-               if ($this->cached_profile_image[$avatar_image])
-                       return $this->cached_profile_image[$avatar_image];
-
-               $path_parts = explode("/",$avatar_image);
-               $common_filename = $path_parts[count($path_parts)-1];
-
-               if ($this->cached_profile_picdate[$common_filename]){
-                       $this->cached_profile_image[$avatar_image] = $avatar_image . $this->cached_profile_picdate[$common_filename];
-               } else {
-                       $r = q("SELECT `contact`.`avatar-date` AS picdate FROM `contact` WHERE `contact`.`thumb` like '%%/%s'",
-                               $common_filename);
-                       if (! dbm::is_result($r)) {
-                               $this->cached_profile_image[$avatar_image] = $avatar_image;
-                       } else {
-                               $this->cached_profile_picdate[$common_filename] = "?rev=".urlencode($r[0]['picdate']);
-                               $this->cached_profile_image[$avatar_image] = $avatar_image.$this->cached_profile_picdate[$common_filename];
-                       }
-               }
-               return $this->cached_profile_image[$avatar_image];
-               */
        }