mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
Ladybird: Remove unused LoadType parameter from Tab::navigate
The only non-default use of this parameter was removed in 980e7164fe
.
This commit is contained in:
parent
340230f6bf
commit
ccf2597bd3
2 changed files with 2 additions and 7 deletions
|
@ -517,14 +517,13 @@ void Tab::focus_location_editor()
|
||||||
m_location_edit->selectAll();
|
m_location_edit->selectAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Tab::navigate(QString url_qstring, LoadType load_type)
|
void Tab::navigate(QString url_qstring)
|
||||||
{
|
{
|
||||||
auto url_string = ak_deprecated_string_from_qstring(url_qstring);
|
auto url_string = ak_deprecated_string_from_qstring(url_qstring);
|
||||||
if (url_string.starts_with('/'))
|
if (url_string.starts_with('/'))
|
||||||
url_string = DeprecatedString::formatted("file://{}", url_string);
|
url_string = DeprecatedString::formatted("file://{}", url_string);
|
||||||
else if (URL url = url_string; !url.is_valid())
|
else if (URL url = url_string; !url.is_valid())
|
||||||
url_string = DeprecatedString::formatted("https://{}", url_string);
|
url_string = DeprecatedString::formatted("https://{}", url_string);
|
||||||
m_is_history_navigation = (load_type == LoadType::HistoryNavigation);
|
|
||||||
view().load(url_string);
|
view().load(url_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,11 +32,7 @@ public:
|
||||||
|
|
||||||
WebContentView& view() { return *m_view; }
|
WebContentView& view() { return *m_view; }
|
||||||
|
|
||||||
enum class LoadType {
|
void navigate(QString);
|
||||||
Normal,
|
|
||||||
HistoryNavigation,
|
|
||||||
};
|
|
||||||
void navigate(QString, LoadType = LoadType::Normal);
|
|
||||||
void back();
|
void back();
|
||||||
void forward();
|
void forward();
|
||||||
void reload();
|
void reload();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue