Skip to content

Commit 613f77c

Browse files
committed
Remove unused code.
1 parent 6298f57 commit 613f77c

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

easy-fs/src/efs.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,6 @@ impl EasyFileSystem {
119119
)
120120
}
121121

122-
/*
123-
fn get_super_block(&self) -> Dirty<SuperBlock> {
124-
Dirty::new(0, 0, self.block_device.clone())
125-
}
126-
*/
127-
128122
pub fn get_disk_inode_pos(&self, inode_id: u32) -> (u32, usize) {
129123
let inode_size = core::mem::size_of::<DiskInode>();
130124
let inodes_per_block = (BLOCK_SZ / inode_size) as u32;
@@ -136,16 +130,6 @@ impl EasyFileSystem {
136130
self.data_area_start_block + data_block_id
137131
}
138132

139-
/*
140-
fn get_block(&self, block_id: u32) -> Dirty<DataBlock> {
141-
Dirty::new(
142-
block_id as usize,
143-
0,
144-
self.block_device.clone(),
145-
)
146-
}
147-
*/
148-
149133
pub fn alloc_inode(&mut self) -> u32 {
150134
self.inode_bitmap.alloc(&self.block_device).unwrap() as u32
151135
}

easy-fs/src/vfs.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ impl Inode {
4848
).lock().modify(self.block_offset, f)
4949
}
5050

51-
/*
52-
fn get_disk_inode(&self, fs: &mut MutexGuard<EasyFileSystem>) -> Dirty<DiskInode> {
53-
fs.get_disk_inode(self.inode_id)
54-
}
55-
*/
56-
5751
fn find_inode_id(
5852
&self,
5953
name: &str,

0 commit comments

Comments
 (0)