Commit cbef7d0c authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

dash: HTTPConnectionManager: Removing useless method.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 73b30f55
...@@ -46,13 +46,6 @@ HTTPConnectionManager::~HTTPConnectionManager () ...@@ -46,13 +46,6 @@ HTTPConnectionManager::~HTTPConnectionManager ()
this->closeAllConnections(); this->closeAllConnections();
} }
IHTTPConnection* HTTPConnectionManager::getConnection (std::string url)
{
HTTPConnection *con = new HTTPConnection(url, this->stream);
con->init();
this->connections.push_back(con);
return con;
}
bool HTTPConnectionManager::closeConnection (IHTTPConnection *con) bool HTTPConnectionManager::closeConnection (IHTTPConnection *con)
{ {
for(std::vector<HTTPConnection *>::iterator it = this->connections.begin(); it != this->connections.end(); ++it) for(std::vector<HTTPConnection *>::iterator it = this->connections.begin(); it != this->connections.end(); ++it)
......
...@@ -50,7 +50,6 @@ namespace dash ...@@ -50,7 +50,6 @@ namespace dash
void closeAllConnections (); void closeAllConnections ();
bool closeConnection (IHTTPConnection *con); bool closeConnection (IHTTPConnection *con);
IHTTPConnection* getConnection (std::string url);
int read (Chunk *chunk, void *p_buffer, size_t len); int read (Chunk *chunk, void *p_buffer, size_t len);
int peek (Chunk *chunk, const uint8_t **pp_peek, size_t i_peek); int peek (Chunk *chunk, const uint8_t **pp_peek, size_t i_peek);
void attach (dash::logic::IDownloadRateObserver *observer); void attach (dash::logic::IDownloadRateObserver *observer);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment