Permalink
Browse files

Removing code and files that were marked deprectad for removal as of

12.3.
  • Loading branch information...
1 parent f362e51 commit dd45eae5262600d92c1d374bc8348ea42a4a108d @LouisLandry LouisLandry committed Oct 7, 2012
Showing with 21 additions and 1,847 deletions.
  1. +0 −19 libraries/import.legacy.php
  2. +0 −32 libraries/joomla/access/access.php
  3. +0 −12 libraries/joomla/application/web.php
  4. +0 −15 libraries/joomla/cache/storage.php
  5. +0 −24 libraries/joomla/client/ftp.php
  6. +0 −24 libraries/joomla/client/ldap.php
  7. +0 −15 libraries/joomla/database/database.php
  8. +0 −14 libraries/joomla/database/driver.php
  9. +13 −26 libraries/joomla/object/object.php
  10. +0 −14 libraries/joomla/profiler/profiler.php
  11. +0 −15 libraries/joomla/session/storage.php
  12. +0 −25 libraries/joomla/string/string.php
  13. +0 −20 libraries/joomla/user/user.php
  14. +0 −38 libraries/legacy/access/rule.php
  15. +0 −38 libraries/legacy/access/rules.php
  16. +0 −45 libraries/legacy/application/cli.php
  17. +0 −47 libraries/legacy/application/daemon.php
  18. +0 −154 libraries/legacy/base/node.php
  19. +0 −197 libraries/legacy/base/observable.php
  20. +0 −60 libraries/legacy/base/observer.php
  21. +0 −100 libraries/legacy/base/tree.php
  22. +0 −24 libraries/legacy/database/exception.php
  23. +0 −32 libraries/legacy/dispatcher/dispatcher.php
  24. +0 −24 libraries/legacy/log/logexception.php
  25. +0 −85 libraries/legacy/simplecrypt/simplecrypt.php
  26. +0 −62 libraries/legacy/simplepie/factory.php
  27. +0 −36 libraries/legacy/web/client.php
  28. +0 −43 libraries/legacy/web/web.php
  29. +0 −155 tests/suites/legacy/base/JNodeTest.php
  30. +0 −140 tests/suites/legacy/base/JObservableTest.php
  31. +0 −43 tests/suites/legacy/base/JObserverTest.php
  32. +0 −60 tests/suites/legacy/base/JTreeTest.php
  33. +5 −5 tests/suites/legacy/error/JErrorTest.php
  34. +0 −145 tests/suites/legacy/simplecrypt/JSimpleCryptTest.php
  35. +3 −3 tests/suites/unit/JLoaderTest.php
  36. +0 −13 tests/suites/unit/joomla/cache/JCacheStorageTest.php
  37. +0 −16 tests/suites/unit/joomla/database/JDatabaseTest.php
  38. +0 −11 tests/suites/unit/joomla/object/JObjectTest.php
  39. +0 −16 tests/suites/unit/joomla/user/JUserTest.php
@@ -66,22 +66,3 @@ class_exists('JLoader') or die;
{
JLoader::register('JsonSerializable', __DIR__ . '/compat/jsonserializable.php');
}
-
-// Add deprecated constants
-// @deprecated 12.3
-define('JPATH_ISWIN', IS_WIN);
-define('JPATH_ISMAC', IS_MAC);
-
-// Register classes where the names have been changed to fit the autoloader rules
-// @deprecated 12.3
-JLoader::register('JSimpleCrypt', JPATH_PLATFORM . '/legacy/simplecrypt/simplecrypt.php');
-JLoader::register('JTree', JPATH_PLATFORM . '/legacy/base/tree.php');
-JLoader::register('JNode', JPATH_PLATFORM . '/legacy/base/node.php');
-JLoader::register('JObserver', JPATH_PLATFORM . '/legacy/base/observer.php');
-JLoader::register('JObservable', JPATH_PLATFORM . '/legacy/base/observable.php');
-JLoader::register('LogException', JPATH_PLATFORM . '/legacy/log/logexception.php');
-JLoader::register('JXMLElement', JPATH_PLATFORM . '/legacy/utilities/xmlelement.php');
-JLoader::register('JRule', JPATH_PLATFORM . '/legacy/access/rule.php');
-JLoader::register('JRules', JPATH_PLATFORM . '/legacy/access/rules.php');
-JLoader::register('JCli', JPATH_PLATFORM . '/legacy/application/cli.php');
-JLoader::register('JDaemon', JPATH_PLATFORM . '/legacy/application/daemon.php');
@@ -449,38 +449,6 @@ public static function getAuthorisedViewLevels($userId)
}
/**
- * Method to return a list of actions for which permissions can be set given a component and section.
- *
- * @param string $component The component from which to retrieve the actions.
- * @param string $section The name of the section within the component from which to retrieve the actions.
- *
- * @return array List of actions available for the given component and section.
- *
- * @since 11.1
- *
- * @deprecated 12.3 Use JAccess::getActionsFromFile or JAccess::getActionsFromData instead.
- *
- * @codeCoverageIgnore
- *
- */
- public static function getActions($component, $section = 'component')
- {
- JLog::add(__METHOD__ . ' is deprecated. Use JAccess::getActionsFromFile or JAcces::getActionsFromData instead.', JLog::WARNING, 'deprecated');
- $actions = self::getActionsFromFile(
- JPATH_ADMINISTRATOR . '/components/' . $component . '/access.xml',
- "/access/section[@name='" . $section . "']/"
- );
- if (empty($actions))
- {
- return array();
- }
- else
- {
- return $actions;
- }
- }
-
- /**
* Method to return a list of actions from a file for which permissions can be set.
*
* @param string $file The path to the XML file.
@@ -1173,15 +1173,3 @@ protected function loadSystemUris($requestUri = null)
}
}
}
-
-/**
- * Deprecated class placeholder. You should use JApplicationWeb instead.
- *
- * @package Joomla.Platform
- * @subpackage Application
- * @since 11.3
- * @deprecated 12.3
- */
-class JWeb extends JApplicationWeb
-{
-}
@@ -254,21 +254,6 @@ public static function isSupported()
}
/**
- * Test to see if the storage handler is available.
- *
- * @return boolean True on success, false otherwise.
- *
- * @since 11.1
- * @deprecated 12.3
- */
- public static function test()
- {
- JLog::add('JCacheStorage::test() is deprecated. Use JCacheStorage::isSupported() instead.', JLog::WARNING, 'deprecated');
-
- return static::isSupported();
- }
-
- /**
* Lock cached item
*
* @param string $id The cache data id
@@ -1663,27 +1663,3 @@ protected function _mode($mode)
return true;
}
}
-
-/**
- * Deprecated class placeholder. You should use JClientFtp instead.
- *
- * @package Joomla.Platform
- * @subpackage Client
- * @since 11.1
- * @deprecated 12.3
- */
-class JFTP extends JClientFtp
-{
- /**
- * JFTP object constructor
- *
- * @param array $options Associative array of options to set
- *
- * @since 11.1
- */
- public function __construct($options)
- {
- JLog::add('JFTP is deprecated. Use JClientFtp instead.', JLog::WARNING, 'deprecated');
- parent::__construct($options);
- }
-}
@@ -637,27 +637,3 @@ public static function generatePassword($password, $type = 'md5')
return $userpassword;
}
}
-
-/**
- * Deprecated class placeholder. You should use JClientLdap instead.
- *
- * @package Joomla.Platform
- * @subpackage Client
- * @since 11.1
- * @deprecated 12.3
- */
-class JLDAP extends JClientLdap
-{
- /**
- * Constructor
- *
- * @param object $configObj An object of configuration variables
- *
- * @since 11.1
- */
- public function __construct($configObj)
- {
- JLog::add('JLDAP is deprecated. Use JClientLdap instead.', JLog::WARNING, 'deprecated');
- parent::__construct($configObj);
- }
-}
@@ -155,19 +155,4 @@ public function stderr($showSQL = false)
return JText::_('JLIB_DATABASE_FUNCTION_NOERROR');
}
}
-
- /**
- * Test to see if the connector is available.
- *
- * @return boolean True on success, false otherwise.
- *
- * @since 11.1
- * @deprecated 12.3 Use JDatabaseDriver::isSupported() instead.
- */
- public static function test()
- {
- JLog::add('JDatabase::test() is deprecated. Use JDatabaseDriver::isSupported() instead.', JLog::WARNING, 'deprecated');
-
- return static::isSupported();
- }
}
@@ -760,20 +760,6 @@ public function getIterator($column = null, $class = 'stdClass')
*
* @return boolean True if the database engine supports UTF-8 character encoding.
*
- * @since 11.1
- * @deprecated 12.3 Use hasUTFSupport() instead
- */
- public function getUTFSupport()
- {
- JLog::add('JDatabase::getUTFSupport() is deprecated. Use JDatabase::hasUTFSupport() instead.', JLog::WARNING, 'deprecated');
- return $this->hasUTFSupport();
- }
-
- /**
- * Determine whether or not the database engine supports UTF-8 character encoding.
- *
- * @return boolean True if the database engine supports UTF-8 character encoding.
- *
* @since 12.1
*/
public function hasUTFSupport()
@@ -24,10 +24,10 @@ class JObject
/**
* An array of error messages or Exception objects.
*
- * @var array
- * @since 11.1
- * @see JError
- * @deprecated 12.3 JError has been deprecated
+ * @var array
+ * @since 11.1
+ * @see JError
+ * @deprecated 13.1
*/
protected $_errors = array();
@@ -48,19 +48,6 @@ public function __construct($properties = null)
}
/**
- * Magic method to convert the object to a string gracefully.
- *
- * @return string The classname.
- *
- * @since 11.1
- * @deprecated 12.3 Classes should provide their own __toString() implementation.
- */
- public function __toString()
- {
- return get_class($this);
- }
-
- /**
* Sets a default value if not alreay assigned
*
* @param string $property The name of the property.
@@ -133,9 +120,9 @@ public function getProperties($public = true)
*
* @return string Error message
*
- * @since 11.1
- * @see JError
- * @deprecated 12.3 JError has been deprecated
+ * @since 11.1
+ * @see JError
+ * @deprecated 13.1
*/
public function getError($i = null, $toString = true)
{
@@ -169,9 +156,9 @@ public function getError($i = null, $toString = true)
*
* @return array Array of error messages or JErrors.
*
- * @since 11.1
- * @see JError
- * @deprecated 12.3 JError has been deprecated
+ * @since 11.1
+ * @see JError
+ * @deprecated 13.1
*/
public function getErrors()
{
@@ -228,9 +215,9 @@ public function setProperties($properties)
*
* @return void
*
- * @since 11.1
- * @see JError
- * @deprecated 12.3 JError has been deprecated
+ * @since 11.1
+ * @see JError
+ * @deprecated 13.1
*/
public function setError($error)
{
@@ -139,20 +139,6 @@ public static function getmicrotime()
}
/**
- * Get information about current memory usage.
- *
- * @return integer The memory usage
- *
- * @link PHP_MANUAL#memory_get_usage
- * @since 11.1
- * @deprecated 12.3 Use PHP's native memory_get_usage()
- */
- public function getMemory()
- {
- return memory_get_usage();
- }
-
- /**
* Get all profiler marks.
*
* Returns an array of all marks created since the Profiler object
@@ -190,19 +190,4 @@ public static function isSupported()
{
return true;
}
-
- /**
- * Test to see if the SessionHandler is available.
- *
- * @return boolean True on success, false otherwise.
- *
- * @since 11.1
- * @deprecated 12.3 Use JSessionStorage::isSupported() instead.
- */
- public static function test()
- {
- JLog::add('JSessionStorage::test() is deprecated. Use JSessionStorage::isSupported() instead.', JLog::WARNING, 'deprecated');
-
- return static::isSupported();
- }
}
@@ -64,31 +64,6 @@
);
/**
- * Split a string in camel case format
- *
- * "FooBarABCDef" becomes array("Foo", "Bar", "ABC", "Def");
- * "JFooBar" becomes array("J", "Foo", "Bar");
- * "J001FooBar002" becomes array("J001", "Foo", "Bar002");
- * "abcDef" becomes array("abc", "Def");
- * "abc_defGhi_Jkl" becomes array("abc_def", "Ghi_Jkl");
- * "ThisIsA_NASAAstronaut" becomes array("This", "Is", "A_NASA", "Astronaut")),
- * "JohnFitzgerald_Kennedy" becomes array("John", "Fitzgerald_Kennedy")),
- *
- * @param string $string The source string.
- *
- * @return array The splitted string.
- *
- * @deprecated 12.3 Use JStringNormalise::fromCamelCase()
- * @since 11.3
- */
- public static function splitCamelCase($string)
- {
- JLog::add('JString::splitCamelCase has been deprecated. Use JStringNormalise::fromCamelCase.', JLog::WARNING, 'deprecated');
-
- return JStringNormalise::fromCamelCase($string, true);
- }
-
- /**
* Increments a trailing number in a string.
*
* Used to easily create distinct labels when copying objects. The method has the following styles:
@@ -455,26 +455,6 @@ public function setLastVisit($timestamp = null)
/**
* Method to get the user parameters
*
- * This method used to load the user parameters from a file.
- *
- * @return object The user parameters object.
- *
- * @since 11.1
- * @deprecated 12.3 Instead use JUser::getParam()
- */
- public function getParameters()
- {
- // @codeCoverageIgnoreStart
- JLog::add('JUser::getParameters() is deprecated. JUser::getParam().', JLog::WARNING, 'deprecated');
-
- return $this->_params;
-
- // @codeCoverageIgnoreEnd
- }
-
- /**
- * Method to get the user parameters
- *
* @param object $params The user parameters object
*
* @return void
Oops, something went wrong.

0 comments on commit dd45eae

Please sign in to comment.