svn: /web/doc-editor/trunk/php/ RepositoryFetcher.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Sun, 28 Mar 2010 19:52:32 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=296991

Log:
Remove unecessary method getLastUpdate

Changed paths:
    U   web/doc-editor/trunk/php/RepositoryFetcher.php

Modified: web/doc-editor/trunk/php/RepositoryFetcher.php
===================================================================
--- web/doc-editor/trunk/php/RepositoryFetcher.php	2010-03-28 19:51:57 UTC (rev 296990)
+++ web/doc-editor/trunk/php/RepositoryFetcher.php	2010-03-28 19:52:32 UTC (rev 296991)
@@ -78,42 +78,6 @@
     }

     /**
-     * Get the last update datetime
-     *
-     * @return The last update datetime or "in_progress" if the update is in progress
-     */
-    public function getLastUpdate()
-    {
-        $am      = AccountManager::getInstance();
-        $project = $am->project;
-
-        $return = array();
-        $return["lastupdatedata"] = '-';
-        $return["lastcheckentities"] = '-';
-
-        // Test is there is an update in progress (data or entities)
-        $lock_update   = new LockFile('project_'.$project.'_lock_update_repository');
-        $lock_apply    = new LockFile('project_'.$project.'_lock_apply_tools');
-        $lock_entities = new LockFile('project_'.$project.'_lock_check_entities');
-
-        if ( $lock_update->isLocked() || $lock_apply->isLocked() ) {
-            $return["lastupdatedata"] = 'in_progress';
-        } else {
-            $t = $this->getStaticValue('last_update_data', '-');
-            if( $t ) { $return["lastupdatedata"] = $t->date; }
-        }
-
-        if ( $lock_entities->isLocked() ) {
-            $return["lastcheckentities"] = 'in_progress';
-        } else {
-            $t = $this->getStaticValue('last_update_entities', '-');
-            if( $t ) { $return["lastcheckentities"] = $t->date; }
-        }
-
-        return $return;
-    }
-
-    /**
      * Get all modified files with user lang or en.
      *
      * @return An associated array containing informations about modified files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.