http://www.mediawiki.org/wiki/Special:Code/MediaWiki/100273

Revision: 100273
Author:   nelson
Date:     2011-10-19 20:32:27 +0000 (Wed, 19 Oct 2011)
Log Message:
-----------
overlap in transit. Using the version that blobaugh created.

Modified Paths:
--------------
    branches/FileBackend/phase3/includes/filerepo/FileBackend.php

Modified: branches/FileBackend/phase3/includes/filerepo/FileBackend.php
===================================================================
--- branches/FileBackend/phase3/includes/filerepo/FileBackend.php       
2011-10-19 20:28:44 UTC (rev 100272)
+++ branches/FileBackend/phase3/includes/filerepo/FileBackend.php       
2011-10-19 20:32:27 UTC (rev 100273)
@@ -272,42 +272,3 @@
     
 } // end class
 
-
-/**
- * A helper class for FileBackend. Some filestores won't have files in the 
filesystem,
- * so we can't count on being able to hand out the filename. Instead, we hand 
out an
- * instance of this class, which will DTRT for all filestores.
- */
-class TempLocalFile {
-
-       /**
-        * @param String $file - mwrepo:// url for the file to hand out.
-        */
-       public function __construct( $file ) {
-               $this->tempPath = $file;
-       }
-
-       /**
-        * Returns a file path pointing to our file or a copy thereof.
-        * @return String
-        */
-       public function path() {
-               return $this->tempPath;
-       }
-
-       /**
-        * we don't have a close() method. Just let the instance go out of 
scope.
-        */
-
-       /**
-        * if we need to delete the file, do so now.
-        */
-       public function __destruct() {
-               if ( $this->tempPath ) {
-                       // Clean up temporary data.
-                       // Only if we actually made a local copy!! unlink( 
$this->tempPath );
-                       $this->tempPath = null;
-               }
-       }
-
-} // end class


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to