Removed useless "function_exists" checks

This commit is contained in:
Michael 2017-12-12 04:52:33 +00:00
parent 8b4c4572d3
commit 88ef61df95
6 changed files with 13 additions and 107 deletions

View file

@ -178,7 +178,6 @@ function profile_photo_post(App $a) {
}
if(! function_exists('profile_photo_content')) {
function profile_photo_content(App $a) {
if (! local_user()) {
@ -285,10 +284,9 @@ function profile_photo_content(App $a) {
}
return; // NOTREACHED
}}
}
if(! function_exists('profile_photo_crop_ui_head')) {
function profile_photo_crop_ui_head(App $a, Image $Image) {
$max_length = Config::get('system','max_image_length');
if (! $max_length) {
@ -337,5 +335,4 @@ function profile_photo_crop_ui_head(App $a, Image $Image) {
$a->page['htmlhead'] .= replace_macros(get_markup_template("crophead.tpl"), array());
$a->page['end'] .= replace_macros(get_markup_template("cropend.tpl"), array());
return;
}}
}