From 98930ce950606f99ac52ec1f19422c0b339fd6bc Mon Sep 17 00:00:00 2001
From: Robert Anderson <randerson@lbsd.net>
Date: Thu, 18 Jun 2009 14:32:57 +0000
Subject: [PATCH] Removed code not being used

---
 webgui/ajax.php | 34 ----------------------------------
 1 file changed, 34 deletions(-)

diff --git a/webgui/ajax.php b/webgui/ajax.php
index 1c07eda4..acc9632d 100644
--- a/webgui/ajax.php
+++ b/webgui/ajax.php
@@ -804,38 +804,4 @@
 
 	exit;
 
-	# Connect via soap
-	$soap = new SoapClient(null,
-		array(
-			'location' => "http://localhost:1080/?Auth=$authType",
-			'uri'      => $module,
-			'login' => $username,
-			'password' => $password
-		)
-	);
-
-	# Try soap call
-	try {
-		$soapRes = $soap->__call($function,$soapParams);
-
-	} catch (Exception $e) {
-		# Build msg string
-		if (is_soap_fault($e)) {
-			header("$SERVER_PROTOCOL 500 Internal Server Error");
-			$msg = "SOAP Fault: ".$e->faultstring;
-			if (!empty($e->detail)) {
-				$msg .= " (".$e->detail.")";
-			}
-		} else {
-			header("$SERVER_PROTOCOL 400 Bad Request");
-			$msg = "Fault: ".$e->getMessage();
-		}
-
-		ajaxException($msg);
-	}
-
-
-	echo json_encode($soapRes);
-
-
 # vim: ts=4
-- 
GitLab