Made setInjectionRequestFromParms() local to PageInject.cpp

This commit is contained in:
Ivan Skytte Jørgensen 2018-07-30 11:12:04 +02:00
parent 11b18d9c68
commit 86c12d668d
3 changed files with 1 additions and 9 deletions

@ -27,7 +27,7 @@ static bool sendHttpReply ( void *state );
// but if we call serialize() then it makes news ones into its own blob.
// so we gotta know our first and last ptr_* pointers for serialize/deseria().
// kinda like how search input works
void setInjectionRequestFromParms(TcpSocket *sock, HttpRequest *hr, CollectionRec *cr, InjectionRequest *ir) {
static void setInjectionRequestFromParms(TcpSocket *sock, HttpRequest *hr, CollectionRec *cr, InjectionRequest *ir) {
// just in case set all to zero
memset ( ir , 0 , sizeof(InjectionRequest ));

@ -13,11 +13,6 @@ bool sendPageInject ( class TcpSocket *s, class HttpRequest *hr );
void setInjectionRequestFromParms ( class TcpSocket *sock ,
class HttpRequest *hr ,
class CollectionRec *cr ,
class InjectionRequest *ir ) ;
class InjectionRequest {
public:

@ -1307,9 +1307,6 @@ bool sendPageAddUrl ( TcpSocket *sock , HttpRequest *hr ) {
// default to zero
memset ( ir , 0 , sizeof(InjectionRequest) );
// this will fill in GigablastRequest so all the parms we need are set
//setInjectionRequestFromParms ( sock , hr , cr , ir );
int32_t collLen;
const char *coll = hr->getString ( "c" , &collLen ,NULL );
if ( ! coll ) coll = g_conf.m_defaultColl;