Browse Source

remove old two-parameter get_document()

David Rose 23 years ago
parent
commit
ac405714ea
2 changed files with 8 additions and 14 deletions
  1. 7 12
      panda/src/downloader/httpClient.cxx
  2. 1 2
      panda/src/downloader/httpClient.h

+ 7 - 12
panda/src/downloader/httpClient.cxx

@@ -337,21 +337,16 @@ post_form(const URLSpec &url, const string &body) {
 ////////////////////////////////////////////////////////////////////
 //     Function: HTTPClient::get_document
 //       Access: Published
-//  Description: Opens the named document for reading, or if body is
-//               nonempty, posts data for a particular URL and
-//               retrieves the response.  Returns a new HTTPChannel
-//               object whether the document is successfully read or
-//               not; you can test is_valid() and get_return_code() to
-//               determine whether the document was retrieved.
+//  Description: Opens the named document for reading.  Returns a new
+//               HTTPChannel object whether the document is
+//               successfully read or not; you can test is_valid() and
+//               get_return_code() to determine whether the document
+//               was retrieved.
 ////////////////////////////////////////////////////////////////////
 PT(HTTPChannel) HTTPClient::
-get_document(const URLSpec &url, const string &body) {
+get_document(const URLSpec &url) {
   PT(HTTPChannel) doc = new HTTPChannel(this);
-  if (body.empty()) {
-    doc->get_document(url);
-  } else {
-    doc->post_form(url, body);
-  }
+  doc->get_document(url);
   return doc;
 }
 

+ 1 - 2
panda/src/downloader/httpClient.h

@@ -91,8 +91,7 @@ PUBLISHED:
 
   PT(HTTPChannel) make_channel(bool persistent_connection);
   PT(HTTPChannel) post_form(const URLSpec &url, const string &body);
-  PT(HTTPChannel) get_document(const URLSpec &url,
-                                const string &body = string());
+  PT(HTTPChannel) get_document(const URLSpec &url);
   PT(HTTPChannel) get_header(const URLSpec &url);
 
 public: