mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:27:35 +00:00
LibWeb: Remove some now unused deprecated functions from QualifiedName
And related callers in Element.
This commit is contained in:
parent
326b34c7c7
commit
96463e947a
3 changed files with 1 additions and 23 deletions
|
@ -1,13 +1,13 @@
|
|||
/*
|
||||
* Copyright (c) 2020, the SerenityOS developers.
|
||||
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2023, Shannon Booth <shannon@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/DeprecatedFlyString.h>
|
||||
#include <AK/FlyString.h>
|
||||
#include <AK/Optional.h>
|
||||
|
||||
|
@ -16,26 +16,11 @@ namespace Web::DOM {
|
|||
class QualifiedName {
|
||||
public:
|
||||
QualifiedName(FlyString const& local_name, Optional<FlyString> const& prefix, Optional<FlyString> const& namespace_);
|
||||
QualifiedName(FlyString const& local_name, Optional<FlyString> const& prefix, DeprecatedFlyString const& namespace_);
|
||||
|
||||
FlyString const& local_name() const { return m_impl->local_name; }
|
||||
Optional<FlyString> const& prefix() const { return m_impl->prefix; }
|
||||
Optional<FlyString> const& namespace_() const { return m_impl->namespace_; }
|
||||
|
||||
DeprecatedFlyString deprecated_prefix() const
|
||||
{
|
||||
if (!m_impl->prefix.has_value())
|
||||
return {};
|
||||
return m_impl->prefix->to_deprecated_fly_string();
|
||||
}
|
||||
|
||||
DeprecatedFlyString deprecated_namespace_() const
|
||||
{
|
||||
if (!m_impl->namespace_.has_value())
|
||||
return {};
|
||||
return m_impl->namespace_->to_deprecated_fly_string();
|
||||
}
|
||||
|
||||
FlyString const& as_string() const { return m_impl->as_string; }
|
||||
|
||||
struct Impl : public RefCounted<Impl> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue