changeset 1161:cbf3c80c6a15

Removed unused DilloUrl from DilloPlain
author corvid <corvid@lavabit.com>
date Sat, 06 Jun 2009 13:41:08 -0400
parents ea163ab97e87
children 10f63c2c8430
files src/plain.cc
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/plain.cc	Fri Jun 05 23:16:57 2009 +0200
+++ b/src/plain.cc	Sat Jun 06 13:41:08 2009 -0400
@@ -47,14 +47,13 @@
 
 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 @@
 /*
  * 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()
 {
    _MSG("::~DilloPlain()\n");
-   a_Url_free(url);
    widgetStyle->unref();
 }
 
@@ -189,7 +186,7 @@
 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;