summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index aceae0fa..963bae8f 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -5280,30 +5280,6 @@ void updateSize_DocumentWidget(iDocumentWidget *d) {
5280 arrange_Widget(d->footerButtons); 5280 arrange_Widget(d->footerButtons);
5281} 5281}
5282 5282
5283#if 0
5284iBool findCachedContent_DocumentWidget(const iDocumentWidget *d, const iString *url,
5285 iString *mime_out, iBlock *data_out) {
5286 if (equal_String(d->mod.url, url) && !isRequestOngoing_DocumentWidget(d)) {
5287 /* It's the currently open page. */
5288 set_String(mime_out, &d->sourceMime);
5289 set_Block(data_out, &d->sourceContent);
5290 return iTrue;
5291 }
5292 /* Finished media requests are kept in memory while the page is open. */
5293 iConstForEach(ObjectList, i, d->media) {
5294 const iMediaRequest *mr = i.object;
5295 if (mr->req &&
5296 isFinished_GmRequest(mr->req) &&
5297 equal_String(linkUrl_GmDocument(d->doc, mr->linkId), url)) {
5298 set_String(mime_out, meta_GmRequest(mr->req));
5299 set_Block(data_out, body_GmRequest(mr->req));
5300 return iTrue;
5301 }
5302 }
5303 return iFalse;
5304}
5305#endif
5306
5307iBeginDefineSubclass(DocumentWidget, Widget) 5283iBeginDefineSubclass(DocumentWidget, Widget)
5308 .processEvent = (iAny *) processEvent_DocumentWidget_, 5284 .processEvent = (iAny *) processEvent_DocumentWidget_,
5309 .draw = (iAny *) draw_DocumentWidget_, 5285 .draw = (iAny *) draw_DocumentWidget_,