Patchwork ui: remove unreachable code

login
register
mail settings
Submitter Bryan O'Sullivan
Date Dec. 22, 2015, 11:25 p.m.
Message ID <5d0e1462c2e310bf5ff7.1450826745@bryano-mbp.netgear.com>
Download mbox | patch
Permalink /patch/12252/
State Accepted
Delegated to: Yuya Nishihara
Headers show

Comments

Bryan O'Sullivan - Dec. 22, 2015, 11:25 p.m.
# HG changeset patch
# User Bryan O'Sullivan <bos@serpentine.com>
# Date 1450826740 28800
#      Tue Dec 22 15:25:40 2015 -0800
# Node ID 5d0e1462c2e310bf5ff731bd273ac7a9dedafd3b
# Parent  fe376159a58d9b3d748b669ac011b0eed0346fea
ui: remove unreachable code
Yuya Nishihara - Dec. 23, 2015, 10:27 a.m.
On Tue, 22 Dec 2015 15:25:45 -0800, Bryan O'Sullivan wrote:
> # HG changeset patch
> # User Bryan O'Sullivan <bos@serpentine.com>
> # Date 1450826740 28800
> #      Tue Dec 22 15:25:40 2015 -0800
> # Node ID 5d0e1462c2e310bf5ff731bd273ac7a9dedafd3b
> # Parent  fe376159a58d9b3d748b669ac011b0eed0346fea
> ui: remove unreachable code
> 
> diff --git a/mercurial/ui.py b/mercurial/ui.py
> --- a/mercurial/ui.py
> +++ b/mercurial/ui.py
> @@ -1149,8 +1149,6 @@ class paths(dict):
>                  raise error.RepoError(_('repository %s does not exist') %
>                                          name)
>  
> -        assert False
> -

Sure, queued to the clowncopter. Thanks.

Patch

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -1149,8 +1149,6 @@  class paths(dict):
                 raise error.RepoError(_('repository %s does not exist') %
                                         name)
 
-        assert False
-
 _pathsuboptions = {}
 
 def pathsuboption(option, attr):