diff --git a/cat.module b/cat.module
index e5e2ed5..bb416e8 100644
--- a/cat.module
+++ b/cat.module
@@ -14,7 +14,6 @@ function cat_menu_local_tasks_alter(&$data, $router_item, $root_path) {
   // Use the advanced drupal_static() pattern.
 
   //prepare cache ID
-  $current_path = current_path();
   $args = $_GET;
   if (!empty($args['destination']))
     unset($args['destination']);
@@ -165,7 +164,7 @@ function _cat_menu_local_tasks_alter($data, $router_item, $root_path) {
 
     // Remove existed Tabs and Actions
     if (!empty($cat_item->cat_remove)) {
-      foreach ($cat_item->cat_remove as $remove_delta => $cat_remove) {
+      foreach ($cat_item->cat_remove as $cat_remove) {
         // remove tabs and actions that match the path of remove cat items
         foreach ($data['tabs'] as $tab_delta => &$output) {
           foreach ($output['output'] as $output_delta => $a_output) {
diff --git a/cat_ui.add_form.inc b/cat_ui.add_form.inc
index c95e030..05b7cd6 100644
--- a/cat_ui.add_form.inc
+++ b/cat_ui.add_form.inc
@@ -513,7 +513,7 @@ function _cat_ui_form_step_4_cat_settings(&$form, &$form_state) {
     if (!empty($cat_item->arguments)) {
       //get the argument names and decide their keywords
       $token_tree['token_types'] = array();
-      foreach ($cat_item->arguments as $position => $arg) {
+      foreach ($cat_item->arguments as $arg) {
         $token_tree['token_types'][] = $arg['argument_name'];
       }
     }
@@ -1063,7 +1063,7 @@ function _cat_ui_reusable_items($concat_machine_name = NULL, $type = NULL) {
     // sepecial subitem
     foreach (cat_get_reusable() as $cat_item_machine_name => $cat_item_types) {
       if ($cat_item_machine_name == $input_cat_mname) {
-        foreach ($cat_item_types as $cat_item_type => $cat_items) {
+        foreach ($cat_item_types as $cat_items) {
           foreach ($cat_items as $cat_item) {
             if ($cat_item['machine_name'] == $input_item_mname) {
               $cat_item['css_id'] = '';
diff --git a/cat_ui.theme.inc b/cat_ui.theme.inc
index 85e7701..0236bf0 100644
--- a/cat_ui.theme.inc
+++ b/cat_ui.theme.inc
@@ -467,8 +467,6 @@ function theme_cat_ui_cat_list($variables) {
       ),
     ));
     $output .= '</div>';
-
-    $nop = drupal_render_children($form);
   }
   else {
     $output .= render($form['top row']);
