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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Wed, 11 Nov 2009 21:24:12 +0000

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

Log:
Remove removeNeedCommit's method from class.php. This method is present in RepositoryManager.php as delPendingCommit's method

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

Modified: web/doc-editor/trunk/php/class.php
===================================================================
--- web/doc-editor/trunk/php/class.php	2009-11-11 21:22:21 UTC (rev 290538)
+++ web/doc-editor/trunk/php/class.php	2009-11-11 21:24:12 UTC (rev 290539)
@@ -1649,34 +1649,6 @@
     }

     /**
-     * Remove the mark "needCommit" into DB for a set of files.
-     *
-     * @param $nodes An array of files.
-     */
-    function removeNeedCommit($nodes) {
-
-        for ($i = 0; $i < count($nodes); $i++ ) {
-
-            $FileLang = $nodes[$i]['lang'];
-            $FilePath = $nodes[$i]['path'];
-            $FileName = $nodes[$i]['name'];
-
-            $s = sprintf('DELETE FROM `pendingCommit`
-              WHERE
-                 `lang` = "%s" AND
-                 `path` = "%s" AND
-                 `name` = "%s"
-            ', $FileLang, $FilePath, $FileName);
-
-            $this->db->query($s) or die($this->db->error.'|'.$s);
-
-            //$this->debug('in removeNeedCommit() ; DB query : '.$s);
-
-        }
-
-    }
-
-    /**
      * Print debug information into a file (.debug) into data folder.
      *
      * @param $mess The debug message.
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.