From c2a188c6f6fa93ddfa792acdfd548ad7b71094ea Mon Sep 17 00:00:00 2001 From: corvid Date: Sat, 6 Jun 2009 13:41:08 -0400 Subject: Removed unused DilloUrl from DilloPlain --- src/plain.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/plain.cc b/src/plain.cc index 1ba0b0e3..4029c048 100644 --- a/src/plain.cc +++ b/src/plain.cc @@ -47,14 +47,13 @@ private: public: BrowserWindow *bw; - DilloUrl *url; Widget *dw; style::Style *widgetStyle; size_t Start_Ofs; /* Offset of where to start reading next */ int state; - DilloPlain(BrowserWindow *bw, const DilloUrl *url); + DilloPlain(BrowserWindow *bw); ~DilloPlain(); void write(void *Buf, uint_t BufSize, int Eof); @@ -84,14 +83,13 @@ void a_Plain_free(void *data); /* * Diplain constructor. */ -DilloPlain::DilloPlain(BrowserWindow *p_bw, const DilloUrl *p_url) +DilloPlain::DilloPlain(BrowserWindow *p_bw) { /* Init event receiver */ plainReceiver.plain = this; /* Init internal variables */ bw = p_bw; - url = a_Url_dup(p_url); dw = new Textblock (prefs.limit_text_width); Start_Ofs = 0; state = ST_SeekingEol; @@ -116,7 +114,6 @@ DilloPlain::DilloPlain(BrowserWindow *p_bw, const DilloUrl *p_url) DilloPlain::~DilloPlain() { _MSG("::~DilloPlain()\n"); - a_Url_free(url); widgetStyle->unref(); } @@ -189,7 +186,7 @@ void DilloPlain::write(void *Buf, uint_t BufSize, int Eof) void *a_Plain_text(const char *type, void *P, CA_Callback_t *Call, void **Data) { DilloWeb *web = (DilloWeb*)P; - DilloPlain *plain = new DilloPlain(web->bw, web->url); + DilloPlain *plain = new DilloPlain(web->bw); *Call = (CA_Callback_t)Plain_callback; *Data = (void*)plain; -- cgit v1.2.3