cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject git commit: remove unused code/deprecations
Date Mon, 29 Apr 2013 02:50:39 GMT
Updated Branches:
  refs/heads/trunk 0f8fc77b8 -> 6c8b3ad0e


remove unused code/deprecations


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/6c8b3ad0
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/6c8b3ad0
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/6c8b3ad0

Branch: refs/heads/trunk
Commit: 6c8b3ad0efaabd0e728eadd437ae0ed45237d01d
Parents: 0f8fc77
Author: Dave Brosius <dbrosius@apache.org>
Authored: Sun Apr 28 22:49:29 2013 -0400
Committer: Dave Brosius <dbrosius@apache.org>
Committed: Sun Apr 28 22:49:29 2013 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/cli/CliClient.java |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/6c8b3ad0/src/java/org/apache/cassandra/cli/CliClient.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cli/CliClient.java b/src/java/org/apache/cassandra/cli/CliClient.java
index 7ff9048..aa4e780 100644
--- a/src/java/org/apache/cassandra/cli/CliClient.java
+++ b/src/java/org/apache/cassandra/cli/CliClient.java
@@ -50,8 +50,6 @@ import org.apache.cassandra.utils.UUIDGen;
 import org.apache.thrift.TBaseHelper;
 import org.apache.thrift.TException;
 import org.codehaus.jackson.*;
-import org.yaml.snakeyaml.Loader;
-import org.yaml.snakeyaml.TypeDescription;
 import org.yaml.snakeyaml.Yaml;
 import org.yaml.snakeyaml.constructor.Constructor;
 
@@ -182,9 +180,7 @@ public class CliClient
         try
         {
             final Constructor constructor = new Constructor(CliUserHelp.class);
-            TypeDescription desc = new TypeDescription(CliUserHelp.class);
-            desc.putListPropertyType("commands", CliCommandHelp.class);
-            final Yaml yaml = new Yaml(new Loader(constructor));
+            final Yaml yaml = new Yaml(constructor);
             return (CliUserHelp) yaml.load(is);
         }
         finally


Mime
View raw message