cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject cassandra git commit: remove dead code
Date Fri, 24 Apr 2015 02:56:19 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 792446a5a -> 5023e620d


remove dead code


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

Branch: refs/heads/trunk
Commit: 5023e620db0c975150d40dbd4c4bc86200c3527d
Parents: 792446a
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Thu Apr 23 22:55:35 2015 -0400
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Thu Apr 23 22:55:35 2015 -0400

----------------------------------------------------------------------
 .../apache/cassandra/serializers/ListSerializer.java | 14 --------------
 .../apache/cassandra/serializers/MapSerializer.java  | 15 ---------------
 .../apache/cassandra/serializers/SetSerializer.java  | 13 -------------
 3 files changed, 42 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/5023e620/src/java/org/apache/cassandra/serializers/ListSerializer.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/serializers/ListSerializer.java b/src/java/org/apache/cassandra/serializers/ListSerializer.java
index 2bbb6d4..aeee2b9 100644
--- a/src/java/org/apache/cassandra/serializers/ListSerializer.java
+++ b/src/java/org/apache/cassandra/serializers/ListSerializer.java
@@ -112,20 +112,6 @@ public class ListSerializer<T> extends CollectionSerializer<List<T>>
     }
 
     /**
-     * Deserializes a serialized list and returns a list of unserialized (ByteBuffer) elements.
-     */
-    public List<ByteBuffer> deserializeToByteBufferCollection(ByteBuffer bytes, int
version)
-    {
-        ByteBuffer input = bytes.duplicate();
-        int n = readCollectionSize(input, version);
-        List<ByteBuffer> l = new ArrayList<>(n);
-        for (int i = 0; i < n; i++)
-            l.add(readValue(input, version));
-
-        return l;
-    }
-
-    /**
      * Returns the element at the given index in a list.
      * @param serializedList a serialized list
      * @param index the index to get

http://git-wip-us.apache.org/repos/asf/cassandra/blob/5023e620/src/java/org/apache/cassandra/serializers/MapSerializer.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/serializers/MapSerializer.java b/src/java/org/apache/cassandra/serializers/MapSerializer.java
index 87b620a..8350f66 100644
--- a/src/java/org/apache/cassandra/serializers/MapSerializer.java
+++ b/src/java/org/apache/cassandra/serializers/MapSerializer.java
@@ -116,21 +116,6 @@ public class MapSerializer<K, V> extends CollectionSerializer<Map<K,
V>>
     }
 
     /**
-     * Deserializes a serialized map and returns a map of unserialized (ByteBuffer) keys
and values.
-     */
-    public Map<ByteBuffer, ByteBuffer> deserializeToByteBufferCollection(ByteBuffer
bytes, int protocolVersion)
-    {
-        ByteBuffer input = bytes.duplicate();
-        int n = readCollectionSize(input, protocolVersion);
-        Map<ByteBuffer, ByteBuffer> m = new LinkedHashMap<>(n);
-
-        for (int i = 0; i < n; i++)
-            m.put(readValue(input, protocolVersion), readValue(input, protocolVersion));
-
-        return m;
-    }
-
-    /**
      * Given a serialized map, gets the value associated with a given key.
      * @param serializedMap a serialized map
      * @param serializedKey a serialized key

http://git-wip-us.apache.org/repos/asf/cassandra/blob/5023e620/src/java/org/apache/cassandra/serializers/SetSerializer.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/serializers/SetSerializer.java b/src/java/org/apache/cassandra/serializers/SetSerializer.java
index 970cfab..21f5075 100644
--- a/src/java/org/apache/cassandra/serializers/SetSerializer.java
+++ b/src/java/org/apache/cassandra/serializers/SetSerializer.java
@@ -98,19 +98,6 @@ public class SetSerializer<T> extends CollectionSerializer<Set<T>>
         }
     }
 
-    /**
-     * Deserializes a serialized set and returns a set of unserialized (ByteBuffer) elements.
-     */
-    public Set<ByteBuffer> deserializeToByteBufferCollection(ByteBuffer bytes, int
version)
-    {
-        ByteBuffer input = bytes.duplicate();
-        int n = readCollectionSize(input, version);
-        Set<ByteBuffer> s = new LinkedHashSet<>(n);
-        for (int i = 0; i < n; i++)
-            s.add(readValue(input, version));
-        return s;
-    }
-
     public String toString(Set<T> value)
     {
         StringBuilder sb = new StringBuilder();


Mime
View raw message