Aleksander Machniak
2014-11-16 07a641c79f1d6fa6b327d1752a6c2ab76b4e07f6
Code cleanup - unused variables
8 files modified
23 ■■■■ changed files
program/steps/addressbook/func.inc 4 ●●●● patch | view | raw | blame | history
program/steps/addressbook/import.inc 2 ●●● patch | view | raw | blame | history
program/steps/mail/compose.inc 1 ●●●● patch | view | raw | blame | history
program/steps/mail/func.inc 6 ●●●● patch | view | raw | blame | history
program/steps/settings/edit_folder.inc 2 ●●●●● patch | view | raw | blame | history
program/steps/settings/edit_response.inc 3 ●●●● patch | view | raw | blame | history
program/steps/settings/folders.inc 1 ●●●● patch | view | raw | blame | history
program/steps/settings/func.inc 4 ●●●● patch | view | raw | blame | history
program/steps/addressbook/func.inc
@@ -279,8 +279,8 @@
    // Saved searches
    $sources = $RCMAIL->user->list_searches(rcube_user::SEARCH_ADDRESSBOOK);
    foreach ($sources as $j => $source) {
        $id = $source['id'];
    foreach ($sources as $source) {
        $id    = $source['id'];
        $js_id = rcube::JQ($id);
        // set class name(s)
program/steps/addressbook/import.inc
@@ -324,7 +324,7 @@
function rcmail_import_group_id($group_name, $CONTACTS, $create, &$import_groups)
{
    $group_id = 0;
    foreach ($import_groups as $key => $group) {
    foreach ($import_groups as $group) {
        if (strtolower($group['name']) == strtolower($group_name)) {
            $group_id = $group['ID'];
            break;
program/steps/mail/compose.inc
@@ -1309,7 +1309,6 @@
        }
        else {
            $data = $storage->get_raw_body($message->uid);
            $curr_mem += $message->size;
        }
        $attachment = array(
program/steps/mail/func.inc
@@ -647,7 +647,7 @@
 */
function rcmail_messagecontent_frame($attrib)
{
    global $OUTPUT, $RCMAIL;
    global $OUTPUT;
    if (empty($attrib['id']))
        $attrib['id'] = 'rcmailcontentwindow';
@@ -1138,7 +1138,7 @@
/**
 * return block to show full message headers
 */
function rcmail_message_full_headers($attrib, $headers=NULL)
function rcmail_message_full_headers($attrib)
{
    global $OUTPUT, $RCMAIL;
@@ -2051,7 +2051,7 @@
    return $out;
}
function rcmail_message_error($uid=null)
function rcmail_message_error()
{
    global $RCMAIL;
program/steps/settings/edit_folder.inc
@@ -298,6 +298,8 @@
function rcmail_get_form_part($form, $attrib = array())
{
    global $RCMAIL;
    $content = '';
    if (is_array($form['content']) && !empty($form['content'])) {
program/steps/settings/edit_response.inc
@@ -79,7 +79,7 @@
function rcube_response_form($attrib)
{
    global $RCMAIL, $OUTPUT, $RESPONSE_RECORD;
    global $RCMAIL, $RESPONSE_RECORD;
    // Set form tags and hidden fields
    $disabled = !empty($RESPONSE_RECORD['static']);
@@ -91,7 +91,6 @@
    $out = "$form_start\n";
    $table = new html_table(array('cols' => 2));
    $label = $RCMAIL->gettext('responsename');
    $table->add('title', html::label('ffname', rcube::Q($RCMAIL->gettext('responsename'))));
    $table->add(null, rcube_output::get_edit_field('name', $RESPONSE_RECORD['name'],
program/steps/settings/folders.inc
@@ -269,7 +269,6 @@
    // create list of available folders
    foreach ($list_folders as $i => $folder) {
        $idx        = $i + 1;
        $sub_key    = array_search($folder['id'], $a_subscribed);
        $subscribed = $sub_key !== false;
        $protected  = $protect_default && isset($special_folders[$folder['id']]);
program/steps/settings/func.inc
@@ -890,7 +890,7 @@
                $select_default_font->add('', '');
                $fonts = rcmail::font_defs();
                foreach ($fonts as $fname => $font) {
                foreach (array_keys($fonts) as $fname) {
                    $select_default_font->add($fname, $fname);
                }
@@ -1360,7 +1360,7 @@
    $tagname = $attrib['tagname'];
    $tabs    = array();
    foreach ($plugin['actions'] as $k => $action) {
    foreach ($plugin['actions'] as $action) {
        if (!$action['command'] && !$action['href'] && $action['action']) {
            $action['href'] = $RCMAIL->url(array('_action' => $action['action']));
        }