Skip to content

Commit f889d20

Browse files
committed
cleanup
1 parent 0ee0e6f commit f889d20

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

source/rosette/api/Api.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,6 @@ public function __construct($user_key, $service_url = 'https://api.rosette.com/
137137
"X-RosetteAPI-Binding: php",
138138
"X-RosetteAPI-Binding-Version: " . self::$binding_version );
139139

140-
/*$this->headers = $this->addHeaders(array("X-RosetteAPI-Key: $user_key",
141-
"Content-Type: application/json",
142-
"Accept: application/json",
143-
"Accept-Encoding: gzip",
144-
"User-Agent: RosetteAPIPHP/" . self::$binding_version,
145-
"X-RosetteAPI-Binding: php",
146-
"X-RosetteAPI-Binding-Version: " . self::$binding_version ));*/
147-
148140
$this->setServiceUrl($service_url);
149141
$this->setDebug(false);
150142
$this->setTimeout(300);
@@ -325,11 +317,6 @@ public function clearOptions()
325317
*/
326318
public function getCustomHeaders()
327319
{
328-
/*if (sizeof($this->customHeaders) > 0) {
329-
return $this->customHeaders;
330-
} else {
331-
return null;
332-
}*/
333320
return $this->customHeaders;
334321
}
335322

source/rosette/api/DocumentParameters.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public function __construct()
6565
$this->language = '';
6666
$this->multiPartContent = '';
6767
$this->genre = '';
68-
$this->customHeaders = '';
6968
}
7069

7170
/**

0 commit comments

Comments
 (0)