Commit 3c21bdfd authored by Dries's avatar Dries

- Patch #16237 by Neil: removed dead code from page.module.

parent cbd9db90
......@@ -96,7 +96,8 @@
"2005-01-18" => "update_117",
"2005-01-19" => "update_118",
"2005-01-20" => "update_119",
"2005-01-25" => "update_120"
"2005-01-25" => "update_120",
"2005-01-26" => "update_121"
);
function update_32() {
......@@ -2159,6 +2160,15 @@ function update_120() {
return $ret;
}
function update_121() {
$ret = array();
// Remove the unused page table.
$ret[] = update_sql('DROP TABLE {page}');
return $ret;
}
function update_sql($sql) {
$edit = $_POST["edit"];
$result = db_query($sql);
......
......@@ -56,34 +56,6 @@ function page_access($op, $node) {
}
}
/**
* Implementation of hook_insert().
*/
function page_insert($node) {
db_query("INSERT INTO {page} (nid, link, description) VALUES (%d, '%s', '%s')", $node->nid, $node->link, $node->description);
}
/**
* Implementation of hook_update().
*/
function page_update($node) {
db_query("UPDATE {page} SET link = '%s', description = '%s' WHERE nid = %d", $node->link, $node->description, $node->nid);
}
/**
* Implementation of hook_delete().
*/
function page_delete(&$node) {
db_query('DELETE FROM {page} WHERE nid = %d', $node->nid);
}
/**
* Implementation of hook_load().
*/
function page_load($node) {
return db_fetch_object(db_query('SELECT link, description FROM {page} WHERE nid = %d', $node->nid));
}
/**
* Implementation of hook_menu().
*/
......@@ -98,13 +70,6 @@ function page_menu($may_cache) {
return $items;
}
/**
* Implementation of hook_view().
*/
function page_view(&$node, $teaser = FALSE, $page = FALSE) {
$node = node_prepare($node, $teaser);
}
/**
* Implementation of hook_form().
*/
......
......@@ -56,34 +56,6 @@ function page_access($op, $node) {
}
}
/**
* Implementation of hook_insert().
*/
function page_insert($node) {
db_query("INSERT INTO {page} (nid, link, description) VALUES (%d, '%s', '%s')", $node->nid, $node->link, $node->description);
}
/**
* Implementation of hook_update().
*/
function page_update($node) {
db_query("UPDATE {page} SET link = '%s', description = '%s' WHERE nid = %d", $node->link, $node->description, $node->nid);
}
/**
* Implementation of hook_delete().
*/
function page_delete(&$node) {
db_query('DELETE FROM {page} WHERE nid = %d', $node->nid);
}
/**
* Implementation of hook_load().
*/
function page_load($node) {
return db_fetch_object(db_query('SELECT link, description FROM {page} WHERE nid = %d', $node->nid));
}
/**
* Implementation of hook_menu().
*/
......@@ -98,13 +70,6 @@ function page_menu($may_cache) {
return $items;
}
/**
* Implementation of hook_view().
*/
function page_view(&$node, $teaser = FALSE, $page = FALSE) {
$node = node_prepare($node, $teaser);
}
/**
* Implementation of hook_form().
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment