Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielborzov/328e7a8b5482ec995986c5aac0ced614 to your computer and use it in GitHub Desktop.
Save danielborzov/328e7a8b5482ec995986c5aac0ced614 to your computer and use it in GitHub Desktop.
diff --git a/app/addons/rus_pickpoint/Tygh/Shippings/RusPickpoint.php b/app/addons/rus_pickpoint/Tygh/Shippings/RusPickpoint.php
index acac8464fa..c284bca688 100644
--- a/app/addons/rus_pickpoint/Tygh/Shippings/RusPickpoint.php
+++ b/app/addons/rus_pickpoint/Tygh/Shippings/RusPickpoint.php
@@ -93,35 +93,6 @@ class RusPickpoint
return $return;
}
- /**
- * Performs logout operation from Pickpoint remote service.
- *
- * @return bool|string
- */
- public static function logout()
- {
- $sid = self::$sid;
- $url = self::$url;
- $data_url = self::$extra_data;
-
- $data = array(
- 'SessionId' => $sid
- );
-
- $return = false;
- if (empty($url)) {
- return $return;
- }
- $response = Http::post($url . 'logout', json_encode($data), $data_url);
- $result = (array) json_decode($response);
-
- if (!empty($result['Success'])) {
- $return = $result['Success'];
- }
-
- return $return;
- }
-
/**
* Gets the delivery zone.
*
diff --git a/app/addons/rus_pickpoint/Tygh/Shippings/Services/Pickpoint.php b/app/addons/rus_pickpoint/Tygh/Shippings/Services/Pickpoint.php
index ea51e43706..d691d5046a 100644
--- a/app/addons/rus_pickpoint/Tygh/Shippings/Services/Pickpoint.php
+++ b/app/addons/rus_pickpoint/Tygh/Shippings/Services/Pickpoint.php
@@ -321,7 +321,6 @@ class Pickpoint implements IService
$return['error'] .= $error . '; ';
}
}
- RusPickpoint::logout();
return $return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment