~ajpaon/squell

a172a3be1084230c899bfdd84248deb506123252 — Andrew Paon 1 year, 5 months ago 21cba72
delete a dead function
1 files changed, 0 insertions(+), 13 deletions(-)

M main.c
M main.c => main.c +0 -13
@@ 176,19 176,6 @@ GridField gridfield_place(GridField g, struct Piece p, int x, int y) {
  return g;
}

GridField field_new(int n, int b[]) {
  GridField f = 0;

  for (int i = 0; i < n; ++i) {
    GridField mask = 1;
    mask <<= b[i];

    f |= mask;
  }

  return f;
}

// Parse a simple ASCII format into a struct Piece.
// The format uses three characters:
// - X, to mean a full square.