Remove unused code in mod/

- Remove commented code
- Remove unused/immediately overwritten variables
- Remove extraneous parameters
- Remove unreachable code
This commit is contained in:
Hypolite Petovan 2019-01-07 01:23:49 -05:00
commit dbc6eb5422
34 changed files with 32 additions and 173 deletions

View file

@ -38,11 +38,9 @@ function wall_attach_post(App $a) {
}
$can_post = false;
$visitor = 0;
$page_owner_uid = $r[0]['uid'];
$page_owner_cid = $r[0]['id'];
$page_owner_nick = $r[0]['nickname'];
$community_page = (($r[0]['page-flags'] == Contact::PAGE_COMMUNITY) ? true : false);
if ((local_user()) && (local_user() == $page_owner_uid)) {
@ -68,7 +66,6 @@ function wall_attach_post(App $a) {
if (DBA::isResult($r)) {
$can_post = true;
$visitor = $contact_id;
}
}
}