mirror of
https://github.com/AleoHQ/leo.git
synced 2024-11-29 11:43:28 +03:00
remove unused method
This commit is contained in:
parent
667392237f
commit
12fdb826e9
@ -14,7 +14,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
use crate::{Attribute, SymbolTable, Type, TypeError, UserDefinedType};
|
||||
use crate::{Attribute, SymbolTable, Type, TypeError};
|
||||
use leo_ast::{FunctionInputVariable, Identifier, Span};
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
@ -90,18 +90,6 @@ impl FunctionInputVariableType {
|
||||
span: unresolved_function_input.span,
|
||||
})
|
||||
}
|
||||
|
||||
///
|
||||
/// Insert the current function input variable type into the given symbol table.
|
||||
///
|
||||
/// If the symbol table did not have this name present, `None` is returned.
|
||||
///
|
||||
pub fn insert(&self, table: &mut SymbolTable) -> Option<UserDefinedType> {
|
||||
let key = self.identifier.name.clone();
|
||||
let value = UserDefinedType::from(self.clone());
|
||||
|
||||
table.insert_name(key, value)
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq for FunctionInputVariableType {
|
||||
|
Loading…
Reference in New Issue
Block a user