gnome-games r7196 - trunk/aisleriot



Author: chpe
Date: Sun Jan 13 22:08:27 2008
New Revision: 7196
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7196&view=rev

Log:
Remove commented-out code.


Modified:
   trunk/aisleriot/board.c

Modified: trunk/aisleriot/board.c
==============================================================================
--- trunk/aisleriot/board.c	(original)
+++ trunk/aisleriot/board.c	Sun Jan 13 22:08:27 2008
@@ -480,17 +480,6 @@
          slot->rect.x + slot->rect.width >= x_start;
 }
 
-#if 0
-static Slot *
-get_slot_from_slot_and_direction (AisleriotBoard *board,
-                                  Slot *origin_slot,
-                                  GtkDirectionType direction)
-{
-//  XXX FIXME;
-  return origin_slot;
-}
-#endif
-
 static int
 get_slot_index_from_slot (AisleriotBoard *board,
                           Slot *slot)
@@ -697,38 +686,6 @@
   }
 }
 
-#if 0
-/* If a prefix of @cards is on top of @slot, set the selection to that prefix;
- * else set selection to NULL.
- */
-static void
-set_selection_with_cards (AisleriotBoard *board,
-                          Slot *slot,
-                          guint8 *cards,
-                          guint n_cards)
-{
-  AisleriotBoardPrivate *priv = board->priv;
-
-  while (n_cards > 0 &&
-         slot->cards->len >= n_cards) {
-    if (memcmp (slot->cards->data + slot->cards->len - n_cards,
-                cards,
-                n_cards) == 0 &&
-        aisleriot_game_drag_valid (priv->game,
-                                   slot->id,
-                                   cards,
-                                   n_cards)) {
-      set_selection (board, slot, slot->cards->len - n_cards);
-      return;
-    }
-
-    --n_cards;
-  }
-
-  set_selection (board, NULL, -1);
-}
-#endif
-
 /* Slot functions */
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]