[meta] Morph a few pub into pub(crate), and remove dead code;

This commit is contained in:
Benjamin Bouvier
2019-09-04 17:50:51 +02:00
parent 8fba449b7b
commit d1d2e790b9
21 changed files with 19 additions and 42 deletions

View File

@@ -4,7 +4,6 @@ use std::collections::HashMap;
use std::fmt;
use std::ops;
use std::rc::Rc;
use std::slice;
use crate::cdsl::camel_case;
use crate::cdsl::formats::{
@@ -72,10 +71,6 @@ pub struct InstructionGroup {
}
impl InstructionGroup {
pub fn iter(&self) -> slice::Iter<Instruction> {
self.instructions.iter()
}
pub fn by_name(&self, name: &'static str) -> &Instruction {
self.instructions
.iter()