diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-03 09:26:29 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-03 09:26:29 +0300 |
commit | 922ad3220909b7314ca629949b44d7d3aa0336b2 (patch) | |
tree | 7e049981dd15e896d10d44b443228f00425b1a6f /src/ui/documentwidget.c | |
parent | e4681eca785d1b090da2d26dc2a0e32abf0217b9 (diff) |
Working on server certificates
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index f8a2e330..954ded0c 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -145,21 +145,6 @@ void deinit_DocumentWidget(iDocumentWidget *d) { | |||
145 | SDL_FreeCursor(d->handCursor); | 145 | SDL_FreeCursor(d->handCursor); |
146 | } | 146 | } |
147 | 147 | ||
148 | #if 0 | ||
149 | static iString *cleanUrl_(const iString *url) { | ||
150 | iString *clean = copy_String(url); | ||
151 | if (startsWith_String(url, "//")) { | ||
152 | prependCStr_String(clean, "gemini:"); | ||
153 | } | ||
154 | else if (indexOfCStr_String(url, "://") == iInvalidPos && !startsWithCase_String(url, "gemini:") | ||
155 | && !startsWithCase_String(url, "data:")) { | ||
156 | /* Prepend default protocol. */ | ||
157 | prependCStr_String(clean, "gemini://"); | ||
158 | } | ||
159 | return clean; | ||
160 | } | ||
161 | #endif | ||
162 | |||
163 | static int documentWidth_DocumentWidget_(const iDocumentWidget *d) { | 148 | static int documentWidth_DocumentWidget_(const iDocumentWidget *d) { |
164 | const iWidget *w = constAs_Widget(d); | 149 | const iWidget *w = constAs_Widget(d); |
165 | const iRect bounds = bounds_Widget(w); | 150 | const iRect bounds = bounds_Widget(w); |