Skip to content

Commit

Permalink
refs #4123 Removing unused imports (using phpstorm Inspections>Fix fe…
Browse files Browse the repository at this point in the history
…ature)
  • Loading branch information
mattab committed Oct 8, 2013
1 parent f5fc4ee commit 186f09a
Show file tree
Hide file tree
Showing 156 changed files with 114 additions and 217 deletions.
2 changes: 0 additions & 2 deletions core/API/DataTableManipulator.php
Expand Up @@ -15,8 +15,6 @@
use Piwik\Period\Range;
use Piwik\DataTable;
use Piwik\Plugins\API\API;
use Piwik\API\Proxy;
use Piwik\API\ResponseBuilder;

/**
* Base class for manipulating data tables.
Expand Down
2 changes: 1 addition & 1 deletion core/API/DocumentationGenerator.php
Expand Up @@ -13,7 +13,7 @@
use Exception;
use Piwik\Piwik;
use Piwik\Common;
use Piwik\API\Proxy;

use Piwik\Url;
use Piwik\PluginsManager;

Expand Down
2 changes: 1 addition & 1 deletion core/API/ResponseBuilder.php
Expand Up @@ -13,7 +13,7 @@
use Exception;
use Piwik\API\DataTableManipulator\Flattener;
use Piwik\API\DataTableManipulator\LabelFilter;
use Piwik\API\DataTableGenericFilter;

use Piwik\DataTable\Renderer\Json;
use Piwik\DataTable\Simple;
use Piwik\DataTable\Renderer;
Expand Down
4 changes: 0 additions & 4 deletions core/Access.php
Expand Up @@ -10,10 +10,6 @@
*/
namespace Piwik;

use Piwik\Config;
use Piwik\Common;
use Piwik\Auth;
use Piwik\Site;
use Piwik\Db;

/**
Expand Down
5 changes: 1 addition & 4 deletions core/Archive.php
Expand Up @@ -11,10 +11,7 @@
namespace Piwik;
use Piwik\Archive\Parameters;
use Piwik\Period\Range;
use Piwik\Piwik;
use Piwik\Metrics;
use Piwik\Date;
use Piwik\Log;

use Piwik\ArchiveProcessor\Rules;
use Piwik\DataAccess\ArchiveSelector;

Expand Down
2 changes: 1 addition & 1 deletion core/Archive/DataCollection.php
Expand Up @@ -12,7 +12,7 @@
namespace Piwik\Archive;

use Exception;
use Piwik\Archive\DataTableFactory;

use Piwik\DataTable;

/**
Expand Down
8 changes: 2 additions & 6 deletions core/ArchiveProcessor.php
Expand Up @@ -11,17 +11,13 @@
namespace Piwik;
use Exception;
use Piwik\ArchiveProcessor\Rules;
use Piwik\Config;

use Piwik\Period;
use Piwik\Piwik;
use Piwik\Date;
use Piwik\Segment;
use Piwik\Site;

use Piwik\Db;
use Piwik\DataAccess\ArchiveSelector;
use Piwik\DataAccess\ArchiveWriter;
use Piwik\DataAccess\LogAggregator;
use Piwik\Log;

/**
* The ArchiveProcessor class is used by the Archive object to make sure the given Archive is processed and available in the DB.
Expand Down
2 changes: 1 addition & 1 deletion core/Controller.php
Expand Up @@ -20,7 +20,7 @@
use Piwik\Plugins\LanguagesManager\LanguagesManager;
use Piwik\Plugins\SitesManager\API as APISitesManager;
use Piwik\Plugins\UsersManager\API as APIUsersManager;
use Piwik\Registry;

use Piwik\View;
use Piwik\ViewDataTable;

Expand Down
2 changes: 1 addition & 1 deletion core/DataAccess/ArchiveSelector.php
Expand Up @@ -20,7 +20,7 @@
use Piwik\ArchiveProcessor;
use Piwik\Segment;
use Piwik\Site;
use Piwik\DataAccess\ArchiveTableCreator;

use Piwik\Db;
use Piwik\Log;

Expand Down
2 changes: 1 addition & 1 deletion core/DataAccess/ArchiveWriter.php
Expand Up @@ -18,7 +18,7 @@
use Piwik\Db;
use Piwik\Db\BatchInsert;
use Piwik\Period;
use Piwik\Piwik;

use Piwik\Segment;
use Piwik\SettingsPiwik;
use Piwik\Log;
Expand Down
2 changes: 1 addition & 1 deletion core/DataAccess/LogAggregator.php
Expand Up @@ -16,7 +16,7 @@
use Piwik\Date;
use Piwik\Segment;
use Piwik\Site;
use Piwik\RankingQuery;

use Piwik\Db;
use Piwik\Tracker\GoalManager;

Expand Down
2 changes: 1 addition & 1 deletion core/DataArray.php
Expand Up @@ -11,7 +11,7 @@
namespace Piwik;

use Exception;
use Piwik\Metrics;

use Piwik\Tracker\GoalManager;

/**
Expand Down
2 changes: 1 addition & 1 deletion core/DataTable.php
Expand Up @@ -13,7 +13,7 @@

use Closure;
use Exception;
use Piwik\Common;

use Piwik\DataTable\Manager;
use Piwik\DataTable\Renderer\Html;
use Piwik\DataTable\Row;
Expand Down
2 changes: 1 addition & 1 deletion core/DataTable/Filter.php
Expand Up @@ -12,7 +12,7 @@

use Exception;
use Piwik\DataTable;
use Piwik\DataTable\Manager;

use Piwik\DataTable\Row;

/**
Expand Down
2 changes: 1 addition & 1 deletion core/DataTable/Filter/AddColumnsProcessedMetricsGoal.php
Expand Up @@ -12,7 +12,7 @@

use Exception;
use Piwik\DataTable;
use Piwik\DataTable\Filter\AddColumnsProcessedMetrics;

use Piwik\Metrics;
use Piwik\Piwik;
use Piwik\Tracker\GoalManager;
Expand Down
1 change: 0 additions & 1 deletion core/DataTable/Filter/BeautifyRangeLabels.php
Expand Up @@ -11,7 +11,6 @@
namespace Piwik\DataTable\Filter;

use Piwik\DataTable;
use Piwik\DataTable\Filter\ColumnCallbackReplace;

/**
* A DataTable filter that replaces range label columns with prettier,
Expand Down
1 change: 0 additions & 1 deletion core/DataTable/Filter/BeautifyTimeRangeLabels.php
Expand Up @@ -11,7 +11,6 @@
namespace Piwik\DataTable\Filter;

use Piwik\DataTable;
use Piwik\DataTable\Filter\BeautifyRangeLabels;

/**
* A DataTable filter replaces range labels that are in seconds with
Expand Down
1 change: 0 additions & 1 deletion core/DataTable/Filter/CalculateEvolutionFilter.php
Expand Up @@ -13,7 +13,6 @@
use Piwik\DataTable;
use Piwik\DataTable\Row;
use Piwik\Site;
use Piwik\DataTable\Filter\ColumnCallbackAddColumnPercentage;

/**
* A DataTable filter that calculates the evolution of a metric and adds
Expand Down
Expand Up @@ -11,7 +11,6 @@
namespace Piwik\DataTable\Filter;

use Piwik\Piwik;
use Piwik\DataTable\Filter\ColumnCallbackAddColumnQuotient;

/**
* Add a new column to the table which is a percentage based on the value resulting
Expand Down
1 change: 0 additions & 1 deletion core/DataTable/Filter/ColumnCallbackReplace.php
Expand Up @@ -13,7 +13,6 @@
use Piwik\DataTable;
use Piwik\DataTable\Filter;
use Piwik\DataTable\Row;
use Piwik\Piwik;

/**
* Replace a column value with a new value resulting
Expand Down
2 changes: 1 addition & 1 deletion core/DataTable/Filter/MetadataCallbackReplace.php
Expand Up @@ -11,7 +11,7 @@
namespace Piwik\DataTable\Filter;

use Piwik\DataTable;
use Piwik\DataTable\Filter\ColumnCallbackReplace;

use Piwik\DataTable\Row;

/**
Expand Down
2 changes: 1 addition & 1 deletion core/DataTable/Filter/PatternRecursive.php
Expand Up @@ -13,7 +13,7 @@
use Exception;
use Piwik\DataTable;
use Piwik\DataTable\Filter;
use Piwik\DataTable\Filter\Pattern;

use Piwik\DataTable\Manager;

/**
Expand Down
1 change: 0 additions & 1 deletion core/DataTable/Renderer.php
Expand Up @@ -15,7 +15,6 @@
use Piwik\Metrics;
use Piwik\Piwik;
use Piwik\DataTable;
use Piwik\DataTable\Simple;

/**
* A DataTable Renderer can produce an output given a DataTable object.
Expand Down
2 changes: 1 addition & 1 deletion core/DataTable/Renderer/Tsv.php
Expand Up @@ -10,7 +10,7 @@
*/
namespace Piwik\DataTable\Renderer;

use Piwik\DataTable\Renderer\Csv;


/**
* TSV export
Expand Down
2 changes: 1 addition & 1 deletion core/DataTable/Renderer/Xml.php
Expand Up @@ -13,7 +13,7 @@
use Exception;
use Piwik\DataTable;
use Piwik\DataTable\Map;
use Piwik\DataTable\Renderer\Php;

use Piwik\DataTable\Simple;
use Piwik\DataTable\Renderer;
use Piwik\Piwik;
Expand Down
2 changes: 1 addition & 1 deletion core/DataTable/Row.php
Expand Up @@ -11,7 +11,7 @@
namespace Piwik\DataTable;

use Exception;
use Piwik\DataTable\Manager;

use Piwik\Metrics;
use Piwik\DataTable;

Expand Down
1 change: 0 additions & 1 deletion core/Db.php
Expand Up @@ -13,7 +13,6 @@
use Exception;
use Piwik\Db\Adapter;
use Piwik\Tracker;
use Piwik\Config;

/**
* SQL wrapper
Expand Down
2 changes: 1 addition & 1 deletion core/Db/Adapter.php
Expand Up @@ -10,7 +10,7 @@
*/
namespace Piwik\Db;

use Piwik\Db\AdapterInterface;

use Piwik\Loader;
use Zend_Db_Table;

Expand Down
2 changes: 1 addition & 1 deletion core/Db/BatchInsert.php
Expand Up @@ -17,7 +17,7 @@
use Piwik\Log;
use Piwik\Db;
use Piwik\DbHelper;
use Piwik\Piwik;

use Piwik\SettingsPiwik;
use Piwik\SettingsServer;

Expand Down
3 changes: 0 additions & 3 deletions core/Error.php
Expand Up @@ -10,9 +10,6 @@
*/
namespace Piwik;

use Piwik\Log;
use Piwik\Version;

/**
* Holds PHP error information (non-exception errors). Also contains log formatting logic
* for PHP errors and Piwik's error handler function.
Expand Down
1 change: 0 additions & 1 deletion core/EventDispatcher.php
Expand Up @@ -11,7 +11,6 @@

namespace Piwik;
use Piwik\Plugin;
use Piwik\PluginsManager;

/**
* This class allows code to post events from anywhere in Piwik and for
Expand Down
1 change: 0 additions & 1 deletion core/FrontController.php
Expand Up @@ -14,7 +14,6 @@
use Piwik\API\Request;
use Piwik\API\ResponseBuilder;
use Piwik\Session;
use Piwik\Registry;

/**
* Front controller.
Expand Down
1 change: 0 additions & 1 deletion core/Http.php
Expand Up @@ -11,7 +11,6 @@
namespace Piwik;

use Exception;
use Piwik\Log;

/**
* Server-side http client to retrieve content from remote servers, and optionally save to a local file.
Expand Down
3 changes: 0 additions & 3 deletions core/IP.php
Expand Up @@ -11,9 +11,6 @@

namespace Piwik;

use Piwik\Config;
use Piwik\Common;

/**
* Handling IP addresses (both IPv4 and IPv6).
*
Expand Down
2 changes: 1 addition & 1 deletion core/Log.php
Expand Up @@ -10,7 +10,7 @@
*/
namespace Piwik;

use Piwik\Common;

use Piwik\Db;

/**
Expand Down
2 changes: 1 addition & 1 deletion core/Menu/Main.php
Expand Up @@ -10,7 +10,7 @@
*/
namespace Piwik\Menu;

use Piwik\Menu\MenuAbstract;


/**
* @package Piwik_Menu
Expand Down
2 changes: 1 addition & 1 deletion core/Menu/Top.php
Expand Up @@ -10,7 +10,7 @@
*/
namespace Piwik\Menu;

use Piwik\Menu\MenuAbstract;


/**
* @package Piwik_Menu
Expand Down
2 changes: 1 addition & 1 deletion core/Option.php
Expand Up @@ -9,7 +9,7 @@
* @package Piwik
*/
namespace Piwik;
use Piwik\Common;


/**
* Option provides a very simple mechanism to save/retrieve key-values pair
Expand Down
3 changes: 1 addition & 2 deletions core/Period.php
Expand Up @@ -10,8 +10,7 @@
*/
namespace Piwik;
use Exception;
use Piwik\Piwik;
use Piwik\Date;

use Piwik\Period\Day;
use Piwik\Period\Month;
use Piwik\Period\Range;
Expand Down
1 change: 0 additions & 1 deletion core/Period/Month.php
Expand Up @@ -11,7 +11,6 @@
namespace Piwik\Period;

use Piwik\Period;
use Piwik\Period\Day;

/**
* @package Piwik
Expand Down
2 changes: 0 additions & 2 deletions core/Period/Range.php
Expand Up @@ -14,8 +14,6 @@
use Piwik\Common;
use Piwik\Period;
use Piwik\Date;
use Piwik\Period\Month;
use Piwik\Period\Week;

/**
* from a starting date to an ending date
Expand Down
2 changes: 1 addition & 1 deletion core/Period/Week.php
Expand Up @@ -10,7 +10,7 @@
*/
namespace Piwik\Period;

use Piwik\Period\Day;

use Piwik\Period;

/**
Expand Down
1 change: 0 additions & 1 deletion core/Period/Year.php
Expand Up @@ -12,7 +12,6 @@

use Piwik\Period;
use Piwik\Date;
use Piwik\Period\Month;

/**
* @package Piwik
Expand Down

0 comments on commit 186f09a

Please sign in to comment.