Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/emulation/device/chrome/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ macro_rules! mod_generator {
pub(crate) mod $mod_name {
use super::*;

#[inline(always)]
pub fn emulation(option: EmulationOption) -> Emulation {
let default_headers = if !option.skip_headers {
#[allow(unreachable_patterns)]
Expand All @@ -143,7 +142,6 @@ macro_rules! mod_generator {
build_emulation(option, default_headers)
}

#[inline(always)]
pub fn build_emulation(
option: EmulationOption,
default_headers: Option<HeaderMap>
Expand Down
2 changes: 0 additions & 2 deletions src/emulation/device/firefox/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ macro_rules! mod_generator {
pub(crate) mod $mod_name {
use super::*;

#[inline(always)]
pub fn emulation(option: EmulationOption) -> Emulation {
let default_headers = if !option.skip_headers {
#[allow(unreachable_patterns)]
Expand All @@ -205,7 +204,6 @@ macro_rules! mod_generator {
build_emulation(option, default_headers)
}

#[inline(always)]
pub fn build_emulation(
option: EmulationOption,
default_headers: Option<HeaderMap>
Expand Down
1 change: 0 additions & 1 deletion src/emulation/device/okhttp/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ macro_rules! mod_generator {
($mod_name:ident, $cipher:expr, $ua:expr) => {
pub(crate) mod $mod_name {
use super::*;
#[inline(always)]
pub fn emulation(option: EmulationOption) -> Emulation {
build_emulation(option, $cipher, $ua)
}
Expand Down
3 changes: 0 additions & 3 deletions src/emulation/device/opera/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ macro_rules! mod_generator {
pub(crate) mod $mod_name {
use super::*;

#[inline(always)]
pub fn emulation(option: EmulationOption) -> Emulation {
let default_headers = if !option.skip_headers {
#[allow(unreachable_patterns)]
Expand All @@ -98,7 +97,6 @@ macro_rules! mod_generator {
build_emulation(option, default_headers)
}

#[inline(always)]
pub fn build_emulation(
option: EmulationOption,
default_headers: Option<HeaderMap>
Expand Down Expand Up @@ -126,7 +124,6 @@ macro_rules! mod_generator {
pub(crate) mod $mod_name {
use super::*;

#[inline(always)]
pub fn emulation(option: EmulationOption) -> Emulation {
let default_headers = if !option.skip_headers {
#[allow(unreachable_patterns)]
Expand Down
3 changes: 0 additions & 3 deletions src/emulation/device/safari/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ macro_rules! mod_generator {
pub(crate) mod $mod_name {
use super::*;

#[inline(always)]
pub fn emulation(option: EmulationOption) -> Emulation {
let default_headers = if !option.skip_headers {
Some($header_initializer($ua))
Expand All @@ -162,7 +161,6 @@ macro_rules! mod_generator {
build_emulation(option, default_headers)
}

#[inline(always)]
pub fn build_emulation(
option: EmulationOption,
default_headers: Option<HeaderMap>,
Expand All @@ -186,7 +184,6 @@ macro_rules! mod_generator {
pub(crate) mod $mod_name {
use super::*;

#[inline(always)]
pub fn emulation(option: EmulationOption) -> Emulation {
let default_headers = if !option.skip_headers {
Some($header_initializer($ua))
Expand Down
Loading