diff options
author | corvid <corvid@lavabit.com> | 2009-06-06 13:41:08 -0400 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2009-06-06 13:41:08 -0400 |
commit | c2a188c6f6fa93ddfa792acdfd548ad7b71094ea (patch) | |
tree | 416146173467bc44ceadc138d4171af238e4b97c | |
parent | 6ebf350194a4580bf5182b6bbee0db594c021c78 (diff) |
Removed unused DilloUrl from DilloPlain
-rw-r--r-- | src/plain.cc | 9 |
1 files 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; |