cask-pkg / cask.rs

A universal, distributed binary file manager. 一个通用的去中心化二进制管理器
MIT License
74 stars 3 forks source link

refactor: remove unused check_exist function #11

Closed iawia002 closed 2 years ago

iawia002 commented 2 years ago

Since #9 used another way, we don't need this function anymore, this patch removes this function to avoid the blow warning:

warning: function is never used: `check_exist`
  --> src/git.rs:18:8
   |
18 | pub fn check_exist(url: &str) -> Result<bool, Report> {
   |        ^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: `cask` (bin "cask") generated 1 warning