diff --git a/html/includes/api_functions.inc.php b/html/includes/api_functions.inc.php
index 0e42a25cb..01eb31acb 100644
--- a/html/includes/api_functions.inc.php
+++ b/html/includes/api_functions.inc.php
@@ -252,7 +252,6 @@ function list_devices()
// This will return a list of devices
global $config;
$app = \Slim\Slim::getInstance();
- $router = $app->router()->getCurrentRoute()->getParams();
$order = $_GET['order'];
$type = $_GET['type'];
if(empty($order))