Browse Source

undo change and remove unreachable clause

git-svn-id: http://svn.ulf.wiger.net/gproc/branches/experimental-0906/gproc@22 f3948e33-8234-0410-8a80-a07eae3b6c4d
jwnorton 15 years ago
parent
commit
295ec6da3c
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/gproc_lib.erl

+ 1 - 3
src/gproc_lib.erl

@@ -24,7 +24,7 @@
 
 -include("gproc.hrl").
 
-insert_reg({T,_,Name} = K, Value, Pid, C) when T==a; T==c; T==n ->
+insert_reg({T,_,Name} = K, Value, Pid, C) when T==a; T==n ->
     %%% We want to store names and aggregated counters with the same
     %%% structure as properties, but at the same time, we must ensure
     %%% that the key is unique. We replace the Pid in the key part
@@ -37,8 +37,6 @@ insert_reg({T,_,Name} = K, Value, Pid, C) when T==a; T==c; T==n ->
             if T == a ->
                     Initial = scan_existing_counters(C, Name),
                     ets:insert(?TAB, {{K,a}, Pid, Initial});
-               T == c ->
-                    update_aggr_counter(l, Name, Value);
                true ->
                     true
             end,