Index: chessboard.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/chessboard/chessboard.module,v
retrieving revision 1.79
diff -u -p -r1.79 chessboard.module
--- chessboard.module	26 Dec 2010 11:09:27 -0000	1.79
+++ chessboard.module	1 Jan 2011 17:31:05 -0000
@@ -141,56 +141,6 @@ function chessboard_theme() {
 }
 
 /**
- * Add structures attached to an element, forcing media 'all', preprocess FALSE.
- *
- * A CSS structure is attached
- * to elements using the #attached property. The #attached property contains an
- * associative array, where the keys are the the types of the structure, and
- * the value the attached data. For example:
- * @code
- * $build['#attached'] = array(
- *   'css' => array(drupal_get_path('module', 'chessboard') . '/chessboard.css'),
- * );
- * @endcode
- *
- * @param $elements
- *   The structured array describing the data being rendered.
- *
- * @see drupal_add_css()
- */
-function chessboard_process_attached($elements) {
-  $options = array('media' => 'all', 'preprocess' => FALSE);
-  $elements['#attached'] += array('css' => array());
-  $elements['#attached']['css'] = array_filter($elements['#attached']['css'], 'is_string');
-  foreach ($elements['#attached']['css'] as $index => $data) {
-    $elements['#attached']['css'][$data] = $options;
-    $elements['#attached']['css'][$index] = FALSE;
-  }
-  $elements['#attached']['css'] = array_filter($elements['#attached']['css']);
-  return drupal_process_attached($elements);
-}
-
-/**
- * Renders HTML given a render array, forcing css media 'all', preprocess FALSE.
- *
- * @see drupal_render()
- *
- * @param $elements
- *   The structured array describing the data to be rendered.
- * @return
- *   The rendered HTML.
- */
-function chessboard_render_elements(&$elements) {
-  $output = drupal_render($elements);
-
-  // Add additional CSS associated with this element.
-  if (!empty($elements['#attached'])) {
-    chessboard_process_attached($elements);
-  }
-  return $output;
-}
-
-/**
  * Chessboard filter. Provides filtering of input into chessboard diagrams.
  *
  * @param $filter
@@ -356,21 +306,3 @@ function _chessboard_formatter_view($ite
   }
   return $element;
 }
-
-function chessboard_formatter_view($items) {
-  $element = array(
-    '#attached' => array(
-      'css' => array(drupal_get_path('module', 'chessboard') . '/chessboard.css'),
-    ),
-  );
-  foreach ($items as $delta => $item) {
-    $element[$delta] = array(
-      '#theme' => 'chessboard',
-      '#item' => $item,
-      '#prefix' => '<div class="chessboard">',
-      '#suffix' => '</div>',
-      '#weight' => $delta,
-    );
-  }
-  return $element;
-}
