From 9f3ec38d1afff7cf354834081d18c77e4b2b9d0b Mon Sep 17 00:00:00 2001 From: Joshua Sherman Date: Sat, 11 Jan 2014 18:07:50 -0500 Subject: [PATCH] Dropped API Common class The class didn't provide any value and promised that it would in the future. Any sort of redundant connection logic should simply be contained in a class that can be extended and not an API-centric common class. Trying to move away from all common classes in favor of classes that can be reused in different parts of the core as well as outside of it. --- classes/API/AYAH.php | 2 +- classes/API/Common.php | 43 -------------------------------- classes/API/Google/Profanity.php | 2 +- classes/API/Gravatar.php | 2 +- 4 files changed, 3 insertions(+), 46 deletions(-) delete mode 100644 classes/API/Common.php diff --git a/classes/API/AYAH.php b/classes/API/AYAH.php index 066cfdc..e560252 100644 --- a/classes/API/AYAH.php +++ b/classes/API/AYAH.php @@ -20,7 +20,7 @@ * * @link http://areyouahuman.com */ -class API_AYAH extends API_Common +class API_AYAH { public static function getHTML() { diff --git a/classes/API/Common.php b/classes/API/Common.php deleted file mode 100644 index 28f50d6..0000000 --- a/classes/API/Common.php +++ /dev/null @@ -1,43 +0,0 @@ - - * @copyright Copyright 2007-2014, Joshua Sherman - * @license http://www.opensource.org/licenses/mit-license.html - * @package PICKLES - * @link https://github.com/joshtronic/pickles - */ - -/** - * Common API Interface - * - * Parent class that our API interface classes should be extending. Contains - * execution of parental functions but may contain more down the road. - */ -abstract class API_Common extends Object -{ - /** - * Constructor - */ - public function __construct() - { - parent::__construct(); - } - - /** - * Destructor - */ - public function __destruct() - { - parent::__destruct(); - } -} - -?> diff --git a/classes/API/Google/Profanity.php b/classes/API/Google/Profanity.php index 5dfd920..0e61e59 100644 --- a/classes/API/Google/Profanity.php +++ b/classes/API/Google/Profanity.php @@ -18,7 +18,7 @@ /** * Google Profanity API Interface */ -class API_Google_Profanity extends API_Common +class API_Google_Profanity { /** * Check diff --git a/classes/API/Gravatar.php b/classes/API/Gravatar.php index f5b8d3b..b438e65 100644 --- a/classes/API/Gravatar.php +++ b/classes/API/Gravatar.php @@ -20,7 +20,7 @@ * * @link http://en.gravatar.com/site/implement/ */ -class API_Gravatar extends API_Common +class API_Gravatar { /** * Hash