ops: remove mct_delete function

This commit is contained in:
Shawn Kwang 2018-10-25 14:09:59 -05:00
parent 096fde11cf
commit 01ed6b7cfa
1 changed files with 0 additions and 14 deletions

View File

@ -20,17 +20,6 @@
require_once('../inc/util_ops.inc');
// This function deletes a row from consent_type table.
function mct_delete() {
$ctid = post_int("consent_type_id");
$consent_type = BoincConsentType::lookup("id = $ctid");
if ($consent_type) {
$myname = $consent_type->shortname;
$consent_type->delete_aux("id = $ctid");
echo "<h2>Consent Type ${myname} deleted.</h2>";
}
}
// This function adds a row to consent_type table.
function add_consenttype() {
$shortname = BoincDb::escape_string(post_str('add_name'));
@ -168,9 +157,6 @@ admin_page_head("Manage consent types");
if (post_str("add_consenttype", true)) {
add_consenttype();
}
else if (post_str("delete", true)) {
mct_delete();
}
else if (post_str("toggleenabled", true)) {
mct_toggle_field("enabled");
}