remove inlining
This commit is contained in:
@@ -59,7 +59,6 @@ pub trait AnimationFrames {
|
||||
}
|
||||
|
||||
impl AnimationFrames for Vec<Image> {
|
||||
#[inline]
|
||||
fn to_string(&self) -> String {
|
||||
let mut string = String::new();
|
||||
let last_frame = self.len() - 1;
|
||||
@@ -77,7 +76,6 @@ impl AnimationFrames for Vec<Image> {
|
||||
}
|
||||
|
||||
/// this doesn't work inside ToBase36 for some reason
|
||||
#[inline]
|
||||
fn to_base36(int: u64) -> String {
|
||||
format!("{}", radix_36(int))
|
||||
}
|
||||
@@ -87,14 +85,12 @@ pub trait ToBase36 {
|
||||
}
|
||||
|
||||
impl ToBase36 for u64 {
|
||||
#[inline]
|
||||
fn to_base36(&self) -> String {
|
||||
to_base36(*self)
|
||||
}
|
||||
}
|
||||
|
||||
/// e.g. `\nNAME DLG_0`
|
||||
#[inline]
|
||||
fn optional_data_line<T: Display>(label: &str, item: Option<T>) -> String {
|
||||
if item.is_some() {
|
||||
format!("\n{} {}", label, item.unwrap())
|
||||
@@ -103,7 +99,6 @@ fn optional_data_line<T: Display>(label: &str, item: Option<T>) -> String {
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn transform_line_endings(input: String, mode: TransformMode) -> String {
|
||||
let mut input = Cursor::new(input);
|
||||
let mut output = Cursor::new(Vec::new());
|
||||
@@ -112,7 +107,6 @@ fn transform_line_endings(input: String, mode: TransformMode) -> String {
|
||||
String::from_utf8(output.into_inner()).unwrap()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn segments_from_string(string: String) -> Vec<String> {
|
||||
// this is pretty weird but a dialogue can just have an empty line followed by a name
|
||||
// however, on entering two empty lines, dialogue will be wrapped in triple quotation marks
|
||||
@@ -160,7 +154,6 @@ fn is_id_available(ids: &Vec<String>, id: &String) -> bool {
|
||||
}
|
||||
|
||||
/// e.g. pass all tile IDs into this to get a new non-conflicting tile ID
|
||||
#[inline]
|
||||
fn new_unique_id(ids: Vec<String>) -> String {
|
||||
let mut new_id: u64 = 0;
|
||||
|
||||
@@ -176,7 +169,6 @@ pub trait Quote {
|
||||
}
|
||||
|
||||
impl Quote for String {
|
||||
#[inline]
|
||||
fn quote(&self) -> String {
|
||||
format!("\"\"\"\n{}\n\"\"\"", self).to_string()
|
||||
}
|
||||
@@ -187,7 +179,6 @@ pub trait Unquote {
|
||||
}
|
||||
|
||||
impl Unquote for String {
|
||||
#[inline]
|
||||
fn unquote(&self) -> String {
|
||||
self.trim_matches('\"').trim_matches('\n').to_string()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user