summaryrefslogtreecommitdiff
path: root/sql/sql_list.h
diff options
context:
space:
mode:
authorunknown <sanja@montyprogram.com>2012-04-06 13:18:12 +0300
committerunknown <sanja@montyprogram.com>2012-04-06 13:18:12 +0300
commit545377ab50c4ae7651d9b6d6882712982f6871dd (patch)
treea9516461f675bf59cb5bf9beee5cfba8fb8103c6 /sql/sql_list.h
parent4632f33d33f80ca584818851d774748c51002e31 (diff)
downloadmariadb-git-545377ab50c4ae7651d9b6d6882712982f6871dd.tar.gz
Unused method removed.
Diffstat (limited to 'sql/sql_list.h')
-rw-r--r--sql/sql_list.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/sql/sql_list.h b/sql/sql_list.h
index e71fdc83177..e569ec18fd8 100644
--- a/sql/sql_list.h
+++ b/sql/sql_list.h
@@ -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