mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Remove obsolete commented-out code
This commit is contained in:
@@ -591,20 +591,12 @@ mod ffi {
|
||||
|
||||
pub fn display_name(&self) -> &str;
|
||||
|
||||
// pub fn set_display_name(&mut self, display_name: String);
|
||||
|
||||
pub fn detail(&self) -> &[MessageContent];
|
||||
|
||||
// pub fn set_detail(&mut self, detail: &[Box<MessageContent>]) -> Result<()>;
|
||||
|
||||
pub fn condition(&self) -> &str;
|
||||
|
||||
// pub fn set_condition(&mut self, condition: String);
|
||||
|
||||
pub fn constraint(&self) -> &str;
|
||||
|
||||
// pub fn set_constraint(&mut self, constraint: String);
|
||||
|
||||
pub fn boxed_clone(&self) -> Box<File>;
|
||||
}
|
||||
|
||||
|
||||
@@ -428,35 +428,18 @@ impl File {
|
||||
self.0.display_name().unwrap_or("")
|
||||
}
|
||||
|
||||
// pub fn set_display_name(&mut self, display_name: String) {
|
||||
// self.0.set_display_name(display_name);
|
||||
// }
|
||||
|
||||
pub fn detail(&self) -> &[MessageContent] {
|
||||
MessageContent::wrap_slice(self.0.detail())
|
||||
}
|
||||
|
||||
// pub fn set_detail(&mut self, detail: &[Box<MessageContent>]) -> Result<(), VerboseError> {
|
||||
// self.0.set_detail(to_vec_of_unwrapped(detail))?;
|
||||
// Ok(())
|
||||
// }
|
||||
|
||||
pub fn condition(&self) -> &str {
|
||||
self.0.condition().unwrap_or("")
|
||||
}
|
||||
|
||||
// pub fn set_condition(&mut self, condition: String) {
|
||||
// self.0.set_condition(condition);
|
||||
// }
|
||||
|
||||
pub fn constraint(&self) -> &str {
|
||||
self.0.constraint().unwrap_or("")
|
||||
}
|
||||
|
||||
// pub fn set_constraint(&mut self, constraint: String) {
|
||||
// self.0.set_constraint(constraint);
|
||||
// }
|
||||
|
||||
pub fn boxed_clone(&self) -> Box<Self> {
|
||||
Box::new(Self(self.0.clone()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user