summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-07-29 08:18:20 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-07-29 08:18:20 +0000
commitaa2de74fa261e4b3d290cedca100eb3330f17fff (patch)
treef9e6311a267b35f55e5c1d4fc87fd5f83b0d08eb
parent452f236fcc9f27d03324aa46fc2d2b5b5a056aa3 (diff)
downloadbrdo-aa2de74fa261e4b3d290cedca100eb3330f17fff.tar.gz
brdo-aa2de74fa261e4b3d290cedca100eb3330f17fff.tar.bz2
- #27624, #27614, #27627: dead code
-rw-r--r--includes/bootstrap.inc1
-rw-r--r--modules/comment.module1
-rw-r--r--modules/comment/comment.module1
-rw-r--r--modules/search.module3
-rw-r--r--modules/search/search.module3
5 files changed, 0 insertions, 9 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index b307ab910..2e5b316f7 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -450,7 +450,6 @@ function bootstrap_invoke_all($op) {
* TRUE if the item is loaded or has already been loaded.
*/
function drupal_load($type, $name) {
- // print $name. '<br />';
static $files = array();
if (isset($files[$type][$name])) {
diff --git a/modules/comment.module b/modules/comment.module
index 504680fb4..fa3a98443 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -1676,7 +1676,6 @@ function _comment_update_node_statistics($nid) {
// comments exist
if ($count > 0) {
- $node = node_load($nid);
$last_reply = db_fetch_object(db_query_range('SELECT cid, name, timestamp, uid FROM {comments} WHERE nid = %d AND status = %d ORDER BY cid DESC', $nid, COMMENT_PUBLISHED, 0, 1));
db_query("UPDATE {node_comment_statistics} SET comment_count = %d, last_comment_timestamp = %d, last_comment_name = '%s', last_comment_uid = %d WHERE nid = %d", $count, $last_reply->timestamp, $last_reply->uid ? NULL : $last_reply->name, $last_reply->uid, $nid);
}
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 504680fb4..fa3a98443 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1676,7 +1676,6 @@ function _comment_update_node_statistics($nid) {
// comments exist
if ($count > 0) {
- $node = node_load($nid);
$last_reply = db_fetch_object(db_query_range('SELECT cid, name, timestamp, uid FROM {comments} WHERE nid = %d AND status = %d ORDER BY cid DESC', $nid, COMMENT_PUBLISHED, 0, 1));
db_query("UPDATE {node_comment_statistics} SET comment_count = %d, last_comment_timestamp = %d, last_comment_name = '%s', last_comment_uid = %d WHERE nid = %d", $count, $last_reply->timestamp, $last_reply->uid ? NULL : $last_reply->name, $last_reply->uid, $nid);
}
diff --git a/modules/search.module b/modules/search.module
index 177ac74f1..dafd498ee 100644
--- a/modules/search.module
+++ b/modules/search.module
@@ -648,9 +648,6 @@ function search_form($action = '', $keys = '', $type = null, $prompt = null) {
if (!$action) {
$action = url('search/'. $type);
}
- if (!$type) {
- $type = 'node';
- }
if (is_null($prompt)) {
$prompt = t('Enter your keywords');
}
diff --git a/modules/search/search.module b/modules/search/search.module
index 177ac74f1..dafd498ee 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -648,9 +648,6 @@ function search_form($action = '', $keys = '', $type = null, $prompt = null) {
if (!$action) {
$action = url('search/'. $type);
}
- if (!$type) {
- $type = 'node';
- }
if (is_null($prompt)) {
$prompt = t('Enter your keywords');
}