mirror of
https://github.com/boostorg/url.git
synced 2026-01-19 04:42:15 +00:00
refactor: remove params_ref unused functions
This commit is contained in:
committed by
Alan de Freitas
parent
e1660fc506
commit
e2e3fe35f4
@@ -955,18 +955,6 @@ public:
|
||||
ignore_case_param ic = {});
|
||||
|
||||
private:
|
||||
detail::params_iter_impl
|
||||
find_impl(
|
||||
detail::params_iter_impl,
|
||||
pct_string_view,
|
||||
ignore_case_param) const noexcept;
|
||||
|
||||
detail::params_iter_impl
|
||||
find_last_impl(
|
||||
detail::params_iter_impl,
|
||||
pct_string_view,
|
||||
ignore_case_param) const noexcept;
|
||||
|
||||
template<class FwdIt>
|
||||
void
|
||||
assign(FwdIt first, FwdIt last,
|
||||
|
||||
@@ -916,18 +916,6 @@ public:
|
||||
//--------------------------------------------
|
||||
|
||||
private:
|
||||
detail::params_iter_impl
|
||||
find_impl(
|
||||
detail::params_iter_impl,
|
||||
core::string_view,
|
||||
ignore_case_param) const noexcept;
|
||||
|
||||
detail::params_iter_impl
|
||||
find_last_impl(
|
||||
detail::params_iter_impl,
|
||||
core::string_view,
|
||||
ignore_case_param) const noexcept;
|
||||
|
||||
template<class FwdIt>
|
||||
void
|
||||
assign(FwdIt first, FwdIt last,
|
||||
|
||||
@@ -242,73 +242,6 @@ erase(
|
||||
detail::query_iter(s));
|
||||
}
|
||||
|
||||
|
||||
//------------------------------------------------
|
||||
//
|
||||
// (implementation)
|
||||
//
|
||||
//------------------------------------------------
|
||||
|
||||
detail::params_iter_impl
|
||||
params_encoded_ref::
|
||||
find_impl(
|
||||
detail::params_iter_impl it,
|
||||
pct_string_view key,
|
||||
ignore_case_param ic) const noexcept
|
||||
{
|
||||
detail::params_iter_impl end_(u_->impl_, 0);
|
||||
if(! ic)
|
||||
{
|
||||
for(;;)
|
||||
{
|
||||
if(it.equal(end_))
|
||||
return it;
|
||||
if(*it.key() == *key)
|
||||
return it;
|
||||
it.increment();
|
||||
}
|
||||
}
|
||||
for(;;)
|
||||
{
|
||||
if(it.equal(end_))
|
||||
return it;
|
||||
if( grammar::ci_is_equal(
|
||||
*it.key(), *key))
|
||||
return it;
|
||||
it.increment();
|
||||
}
|
||||
}
|
||||
|
||||
detail::params_iter_impl
|
||||
params_encoded_ref::
|
||||
find_last_impl(
|
||||
detail::params_iter_impl it,
|
||||
pct_string_view key,
|
||||
ignore_case_param ic) const noexcept
|
||||
{
|
||||
detail::params_iter_impl begin_(u_->impl_);
|
||||
if(! ic)
|
||||
{
|
||||
for(;;)
|
||||
{
|
||||
if(it.equal(begin_))
|
||||
return { u_->impl_, 0 };
|
||||
it.decrement();
|
||||
if(*it.key() == *key)
|
||||
return it;
|
||||
}
|
||||
}
|
||||
for(;;)
|
||||
{
|
||||
if(it.equal(begin_))
|
||||
return { u_->impl_, 0 };
|
||||
it.decrement();
|
||||
if(grammar::ci_is_equal(
|
||||
*it.key(), *key))
|
||||
return it;
|
||||
}
|
||||
}
|
||||
|
||||
} // urls
|
||||
} // boost
|
||||
|
||||
|
||||
@@ -236,72 +236,6 @@ erase(
|
||||
opt_);
|
||||
}
|
||||
|
||||
//------------------------------------------------
|
||||
//
|
||||
// (implementation)
|
||||
//
|
||||
//------------------------------------------------
|
||||
|
||||
detail::params_iter_impl
|
||||
params_ref::
|
||||
find_impl(
|
||||
detail::params_iter_impl it,
|
||||
core::string_view key,
|
||||
ignore_case_param ic) const noexcept
|
||||
{
|
||||
detail::params_iter_impl end_(u_->impl_, 0);
|
||||
if(! ic)
|
||||
{
|
||||
for(;;)
|
||||
{
|
||||
if(it.equal(end_))
|
||||
return it;
|
||||
if(*it.key() == key)
|
||||
return it;
|
||||
it.increment();
|
||||
}
|
||||
}
|
||||
for(;;)
|
||||
{
|
||||
if(it.equal(end_))
|
||||
return it;
|
||||
if( grammar::ci_is_equal(
|
||||
*it.key(), key))
|
||||
return it;
|
||||
it.increment();
|
||||
}
|
||||
}
|
||||
|
||||
detail::params_iter_impl
|
||||
params_ref::
|
||||
find_last_impl(
|
||||
detail::params_iter_impl it,
|
||||
core::string_view key,
|
||||
ignore_case_param ic) const noexcept
|
||||
{
|
||||
detail::params_iter_impl begin_(u_->impl_);
|
||||
if(! ic)
|
||||
{
|
||||
for(;;)
|
||||
{
|
||||
if(it.equal(begin_))
|
||||
return { u_->impl_, 0 };
|
||||
it.decrement();
|
||||
if(*it.key() == key)
|
||||
return it;
|
||||
}
|
||||
}
|
||||
for(;;)
|
||||
{
|
||||
if(it.equal(begin_))
|
||||
return { u_->impl_, 0 };
|
||||
it.decrement();
|
||||
if(grammar::ci_is_equal(
|
||||
*it.key(), key))
|
||||
return it;
|
||||
}
|
||||
}
|
||||
|
||||
} // urls
|
||||
} // boost
|
||||
|
||||
|
||||
Reference in New Issue
Block a user