Skip to content

Commit

Permalink
chore: remove unused sample function
Browse files Browse the repository at this point in the history
  • Loading branch information
nohehf committed May 22, 2024
1 parent fb35b6b commit 0696147
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ mod stack_graphs_wrapper;

use classes::{FileEntry, FileStatus, Indexer, Language, Position, Querier};

/// Formats the sum of two numbers as string.
#[pyfunction]
fn sum_as_string(a: usize, b: usize) -> PyResult<String> {
Ok((a + b).to_string())
}
/// Indexes the given paths into stack graphs, and stores the results in the given database.
#[pyfunction]
fn index(paths: Vec<String>, db_path: String, language: Language) -> PyResult<()> {
Expand All @@ -30,7 +25,6 @@ fn index(paths: Vec<String>, db_path: String, language: Language) -> PyResult<()
/// A Python module implemented in Rust.
#[pymodule]
fn stack_graphs_python(_py: Python, m: &PyModule) -> PyResult<()> {
m.add_function(wrap_pyfunction!(sum_as_string, m)?)?;
m.add_function(wrap_pyfunction!(index, m)?)?;
m.add_class::<Position>()?;
m.add_class::<Language>()?;
Expand Down

0 comments on commit 0696147

Please sign in to comment.