]> git.sesse.net Git - vlc/commitdiff
dash: HTTPConnectionManager: Removing useless method.
authorHugo Beauzée-Luyssen <beauze.h@gmail.com>
Thu, 5 Jan 2012 15:03:27 +0000 (16:03 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 6 Jan 2012 11:40:39 +0000 (12:40 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/stream_filter/dash/http/HTTPConnectionManager.cpp
modules/stream_filter/dash/http/HTTPConnectionManager.h

index 8dce57b40af2a70eac665ff22d714337cfad2369..0084f7d672af2dcb08305cedb76496c6f6693014 100644 (file)
@@ -46,13 +46,6 @@ HTTPConnectionManager::~HTTPConnectionManager   ()
     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)
 {
     for(std::vector<HTTPConnection *>::iterator it = this->connections.begin(); it != this->connections.end(); ++it)
index 11487ed004432b5b5e6b0057f346d68eeb40b312..56ba8f641c7c9ce4cf2d9d0e8f2b570960b72dfb 100644 (file)
@@ -50,7 +50,6 @@ namespace dash
 
                 void                closeAllConnections ();
                 bool                closeConnection     (IHTTPConnection *con);
-                IHTTPConnection*    getConnection       (std::string url);
                 int                 read                (Chunk *chunk, void *p_buffer, size_t len);
                 int                 peek                (Chunk *chunk, const uint8_t **pp_peek, size_t i_peek);
                 void                attach              (dash::logic::IDownloadRateObserver *observer);