# HG changeset patch
# User Surkov Sergey <surkovsv93@gmail.com>
# Date 1484046529 -10800
# Node ID 4485e6478b91360b245568cbc462128848f7d6c1
# Parent  3bffe3bd8d78666499ab6c33d8a8c7c631727266
fix doubling search results in Search Result Panel

After fix local search in SFC POU in 163d3a8, search results tree assemble with "children" branches: results of search in actions anf transitions. Deleted code doubling this search results into one more separate branch, so it's useless.

diff -r 3bffe3bd8d78 -r 4485e6478b91 controls/SearchResultPanel.py
--- a/controls/SearchResultPanel.py	Thu Dec 29 18:41:38 2016 +0300
+++ b/controls/SearchResultPanel.py	Tue Jan 10 14:08:49 2017 +0300
@@ -232,19 +232,6 @@
                             break
                     if element_type == ITEM_RESOURCE:
                         search_results_tree_children.append(element_infos)
-                    else:
-                        _tagname = self.ParentWindow.Controler.ComputePouName(words[1])
-                        _element_type = self.ParentWindow.Controler.GetPouType(words[1])
-                    
-                        _element_infos = {"name": words[1],
-                                          "type": _element_type,
-                                          "data": _tagname,
-                                          "text": None,
-                                          "matches": 1,
-                                          "children": [element_infos]}
-                    
-                        search_results_tree_children.append(_element_infos)
-                
                 else:
                     search_results_tree_children.append(element_infos)