summaryrefslogtreecommitdiffstats
path: root/src/source
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-12-04 10:37:20 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-12-07 13:21:54 +0100
commit4352bc062a209e183dd24da64e7a122d75318da8 (patch)
tree966492d1cadbaec6217045b5a17921f3de8a5f81 /src/source
parent4f0eb2b11ac44ce4f3b2273dcd863c5e173689c1 (diff)
Remove SourceEntry::open() (unused)
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/source')
-rw-r--r--src/source/mod.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/source/mod.rs b/src/source/mod.rs
index c89021e..1117a55 100644
--- a/src/source/mod.rs
+++ b/src/source/mod.rs
@@ -90,18 +90,6 @@ impl SourceEntry {
.matches_hash_of(&buf)
}
- pub async fn open(&self) -> Result<tokio::fs::File> {
- let p = self.source_file_path();
-
- tokio::fs::OpenOptions::new()
- .create(false)
- .create_new(false)
- .read(true)
- .open(&p)
- .await
- .map_err(Error::from)
- }
-
pub async fn create(&self) -> Result<tokio::fs::File> {
let p = self.source_file_path();