소스 검색

Removed usless error function from SQL plugin.

Taddeus Kroes 14 년 전
부모
커밋
959d45d07f
1개의 변경된 파일1개의 추가작업 그리고 14개의 파일을 삭제
  1. 1 14
      pquery.sql.php

+ 1 - 14
pquery.sql.php

@@ -294,6 +294,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
 	 * If a query is specified and debug mode is on, add the query to the error message.
 	 * 
 	 * @param string $query The query that was executed, if any.
+	 * @codeCoverageIgnore
 	 */
 	static function mysql_error($query='') {
 		$error = sprintf('MySQL error %d: %s.', mysql_errno(), mysql_error());
@@ -302,20 +303,6 @@ class pQuerySql extends pQuery implements pQueryExtension {
 		self::error($error);
 	}
 	
-	/**
-	 * Extention of {@link pQuery::error}, returning FALSE (useful in result loops).
-	 * Also, the current query is printed in debug mode.
-	 * 
-	 * @param string $error The error message
-	 * @returns bool FALSE
-	 */
-	static function error($error /* [ , $arg1 [ , ... ] ] */) {
-		$args = func_get_args();
-		call_user_func_array('pQuery::error', $args);
-		
-		return false;
-	}
-	
 	/**
 	 * Escape a string for safe use in a query.
 	 *