diff --git a/app/Exceptions/Api/ApiException.php b/app/Exceptions/Api/ApiException.php index d2f36a6..884d1a1 100644 --- a/app/Exceptions/Api/ApiException.php +++ b/app/Exceptions/Api/ApiException.php @@ -14,8 +14,6 @@ class ApiException extends \Exception { * @return mixed */ public function __construct($text_code='SERVER_ERROR', $message, $status_code = 0, $response_type='plain_text', Exception $previous = null) { - // TODO special Polr error codes for JSON - $this->response_type = $response_type; $this->text_code = $text_code; parent::__construct($message, $status_code, $previous); diff --git a/app/Http/Controllers/Api/ApiLinkController.php b/app/Http/Controllers/Api/ApiLinkController.php index d4c72f2..063ce6e 100644 --- a/app/Http/Controllers/Api/ApiLinkController.php +++ b/app/Http/Controllers/Api/ApiLinkController.php @@ -9,7 +9,6 @@ use App\Exceptions\Api\ApiException; class ApiLinkController extends ApiController { public function shortenLink(Request $request) { $response_type = $request->input('response_type'); - // $user = self::getApiUserInfo($request); $user = $request->user; // Validate parameters