diff options
author | Ramkumar Ramachandra <artagnon@gmail.com> | 2013-06-22 13:28:12 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-06-23 00:33:57 -0700 |
commit | 55cfde251b4bee36f64f2067cccc4ba346aaf1b0 (patch) | |
tree | 76d11db51d104818c557f7ba054a7eeaef42476b /blob.h | |
parent | fe3c1956e2289f083cf6777b3ff22fe628c92951 (diff) | |
download | git-55cfde251b4bee36f64f2067cccc4ba346aaf1b0.tar.gz git-55cfde251b4bee36f64f2067cccc4ba346aaf1b0.tar.xz |
remote: remove dead code in read_branches_file()
The first line of the function checks that the remote-name contains a
slash ('/'), and sets the "slash" variable accordingly. The only caller
of read_branches_file() is remote_get_1(); the calling codepath is
guarded by valid_remote_nick(), which checks that the remote does not
contain a slash. Therefore, the "slash" variable can never be set:
remove the dead code that assumes otherwise.
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'blob.h')
0 files changed, 0 insertions, 0 deletions