[Commits] Rev 3497: Unused method removed. in file:///home/bell/maria/bzr/work-maria-5.3-lpb968720/

sanja at montyprogram.com sanja at montyprogram.com
Fri Apr 6 13:18:12 EEST 2012


At file:///home/bell/maria/bzr/work-maria-5.3-lpb968720/

------------------------------------------------------------
revno: 3497
revision-id: sanja at montyprogram.com-20120406101812-9cfsu7o6u3ffm16k
parent: holyfoot at askmonty.org-20120406092400-ueyuly1uyb46cu8w
committer: sanja at montyprogram.com
branch nick: work-maria-5.3-lpb968720
timestamp: Fri 2012-04-06 13:18:12 +0300
message:
  Unused method removed.
-------------- next part --------------
=== modified file 'sql/sql_list.h'
--- a/sql/sql_list.h	2012-04-05 20:32:57 +0000
+++ b/sql/sql_list.h	2012-04-06 10:18:12 +0000
@@ -258,25 +258,6 @@ public:
     return tmp->info;
   }
 
-  /**
-    Cut the list with leaving not more then n elements
-  */
-  inline uint cut(uint n)
-  {
-    list_node *element= first;
-    uint i= 0;
-    for (;
-         i < n && element != &end_of_list;
-         element= element->next, i++);
-    if (element != &end_of_list)
-    {
-      elements= i + 1;
-      last= &element->next;
-      element->next= &end_of_list;
-    }
-    return i + 1;
-  }
-
   /*
     Remove from this list elements that are contained in the passed list. 
     We assume that the passed list is a tail of this list (that is, the whole 



More information about the commits mailing list