From 625cb74aa5fb30a84f022c2897d62d2e7dac941e Mon Sep 17 00:00:00 2001
From: Tim Plunkett <git@plnktt.com>
Date: Mon, 30 Jul 2012 07:34:38 -0500
Subject: [PATCH] Remove the obsolete includes/plugins.inc.

---
 includes/plugins.inc | 70 --------------------------------------------
 1 file changed, 70 deletions(-)
 delete mode 100644 includes/plugins.inc

diff --git a/includes/plugins.inc b/includes/plugins.inc
deleted file mode 100644
index a9de287bf8d1..000000000000
--- a/includes/plugins.inc
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-
-/**
- * @file
- * Built in plugins for Views output handling.
- */
-
-use Drupal\views\ViewsObject;
-
-/**
- * Builds and return a list of all plugins available in the system.
- *
- * @return Nested array of plugins, grouped by type.
- */
-function views_discover_plugins() {
-  $cache = array('display' => array(), 'style' => array(), 'row' => array(), 'argument default' => array(), 'argument validator' => array(), 'access' => array(), 'cache' => array(), 'exposed_form' => array());
-  // Get plugins from all mdoules.
-  foreach (module_implements('views_plugins') as $module) {
-    $function = $module . '_views_plugins';
-    $result = $function();
-    if (!is_array($result)) {
-      continue;
-    }
-
-    $module_dir = isset($result['module']) ? $result['module'] : $module;
-    // Setup automatic path/file finding for theme registration
-    if ($module_dir == 'views') {
-      $theme_path = drupal_get_path('module', $module_dir) . '/theme';
-      $theme_file = 'theme.inc';
-      $path = drupal_get_path('module', $module_dir) . '/plugins';
-    }
-    else {
-      $theme_path = $path = drupal_get_path('module', $module_dir);
-      $theme_file = "$module.views.inc";
-    }
-
-    foreach ($result as $type => $info) {
-      if ($type == 'module') {
-        continue;
-      }
-      foreach ($info as $plugin => $def) {
-        $def['module'] = $module_dir;
-        if (!isset($def['theme path'])) {
-          $def['theme path'] = $theme_path;
-        }
-        if (!isset($def['theme file'])) {
-          $def['theme file'] = $theme_file;
-        }
-        if (!isset($def['path'])) {
-          $def['path'] = $path;
-        }
-//        if (!isset($def['file'])) {
-//          $def['file'] = $def['handler'] . '.inc';
-//        }
-        if (!isset($def['parent'])) {
-          $def['parent'] = 'parent';
-        }
-        // Set the internal name to be able to read it out later.
-        $def['name'] = $plugin;
-
-        // merge the new data in
-        $cache[$type][$plugin] = $def;
-      }
-    }
-  }
-
-  // Let other modules modify the plugins.
-  drupal_alter('views_plugins', $cache);
-  return $cache;
-}
-- 
GitLab