[gnome-commander] Drop some unused code
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Drop some unused code
- Date: Tue, 15 Feb 2011 20:15:08 +0000 (UTC)
commit 5665f8f77a2f212af4201efc24df9303f76fda87
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Tue Feb 15 21:08:45 2011 +0100
Drop some unused code
src/gnome-cmd-clist.cc | 55 ------------------------------------------------
1 files changed, 0 insertions(+), 55 deletions(-)
---
diff --git a/src/gnome-cmd-clist.cc b/src/gnome-cmd-clist.cc
index c66066f..68a3e2c 100644
--- a/src/gnome-cmd-clist.cc
+++ b/src/gnome-cmd-clist.cc
@@ -53,61 +53,6 @@ struct GnomeCmdCListPrivate
(((row) + 1) * CELL_SPACING) + \
(clist)->voffset)
-/* returns the row index from a y pixel location in the
- * context of the clist's voffset */
-#define ROW_FROM_YPIXEL(clist, y) (((y) - (clist)->voffset) / \
- ((clist)->row_height + CELL_SPACING))
-
-/* gives the left pixel of the given column in context of
- * the clist's hoffset */
-#define COLUMN_LEFT_XPIXEL(clist, colnum) ((clist)->column[(colnum)].area.x + \
- (clist)->hoffset)
-
-/* returns the column index from a x pixel location in the
- * context of the clist's hoffset */
-inline gint COLUMN_FROM_XPIXEL (GtkCList * clist, gint x)
-{
- for (gint i = 0; i < clist->columns; i++)
- if (clist->column[i].visible)
- {
- gint cx = clist->column[i].area.x + clist->hoffset;
-
- if (x >= (cx - (COLUMN_INSET + CELL_SPACING)) && x <= (cx + clist->column[i].area.width + COLUMN_INSET))
- return i;
- }
-
- // no match
- return -1;
-}
-
-
-/* returns the top pixel of the given row in the context of
- * the list height */
-#define ROW_TOP(clist, row) (((clist)->row_height + CELL_SPACING) * (row))
-
-/* returns the left pixel of the given column in the context of
- * the list width */
-#define COLUMN_LEFT(clist, colnum) ((clist)->column[(colnum)].area.x)
-
-// returns the total height of the list
-#define LIST_HEIGHT(clist) (((clist)->row_height * ((clist)->rows)) + \
- (CELL_SPACING * ((clist)->rows + 1)))
-
-
-// returns the total width of the list
-inline gint LIST_WIDTH (GtkCList * clist)
-{
- gint last_column;
-
- for (last_column = clist->columns - 1;
- last_column >= 0 && !clist->column[last_column].visible; last_column--);
-
- if (last_column >= 0)
- return clist->column[last_column].area.x + clist->column[last_column].area.width + COLUMN_INSET + CELL_SPACING;
-
- return 0;
-}
-
// returns the GList item for the nth row
#define ROW_ELEMENT(clist, row) (((row) == (clist)->rows - 1) ? (clist)->row_list_end : \
g_list_nth ((clist)->row_list, (row)))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]