From 3250e2f7c93cc0fd8e2545bf88e1ad45f6785c1f Mon Sep 17 00:00:00 2001
From: Jerenus <zuichudekuaile@gmail.com>
Date: Sun, 13 Oct 2013 09:57:48 +0800
Subject: [PATCH] Issue #380842 by Jerenus: debug code removed.

---
 handlers/location_handler_sort_location_country.inc | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/handlers/location_handler_sort_location_country.inc b/handlers/location_handler_sort_location_country.inc
index 32ff13b..cb5ae48 100644
--- a/handlers/location_handler_sort_location_country.inc
+++ b/handlers/location_handler_sort_location_country.inc
@@ -13,7 +13,6 @@ class location_handler_sort_location_country extends views_handler_sort {
   }
 
   function extra_options_form(&$form, &$form_state) {
-    //drupal_set_message('location_handler_sort_location_country inside extra_options_form');
     $form['country_sort'] = array(
       '#type' => 'radios',
       '#title' => t('Name or Code'),
@@ -27,17 +26,13 @@ class location_handler_sort_location_country extends views_handler_sort {
   }
 
   function query() {
-    //drupal_set_message('location_handler_sort_location_country inside query');
-
     //Make sure the table_alias work.  This sets up some of the list pointers.
     $this->ensure_my_table();
 
     //This is needed otherwise the the add_relationship will not work.
     $this->query->ensure_path($this->table_alias);
 
-    //drupal_set_message('Options:' . print_r($this->options,1));
     if ($this->options['country_sort'] == 'name') {
-      //drupal_set_message('Select sort by name');
       $join = new views_join();
       $join->definition = array(
         'table' => 'location_country',
@@ -54,13 +49,7 @@ class location_handler_sort_location_country extends views_handler_sort {
       $this->query->add_orderby('country_name', 'name', $this->options['order'], 'country_sort');
     }
     elseif ($this->options['country_sort'] == 'code') {
-      //drupal_set_message('Select sort by code');
-      //node_users__location.country
       $this->query->add_orderby($this->table_alias, 'country', $this->options['order'], 'country_code_sort');
     }
-
-
-    //Create the join definition with the location_county table that has the mapping from
-    //country code to country name
   }
 }
-- 
1.8.1.2

