commit | 9711cd610025f761bf0c70b755a8496a65cc9868 | [log] [tgz] |
---|---|---|
author | abat <abat@bigswitch.com> | Mon Nov 11 11:51:26 2013 -0800 |
committer | abat <abat@bigswitch.com> | Mon Nov 11 11:51:26 2013 -0800 |
tree | 758b314b9cdbc4ee82dc2bc80aacec4f9c815c9b | |
parent | 4c5e02100dbc44bc5a5aabcc70664b75fb4e4693 [diff] | |
parent | 1758028cd28d3eb57a75694638862a8553fd0ecd [diff] |
Merge into master from pull request #119: IPv6AddressTest: removed unused code (https://github.com/floodlight/loxigen/pull/119)
diff --git a/java_gen/pre-written/src/test/java/org/projectfloodlight/openflow/types/IPv6AddressTest.java b/java_gen/pre-written/src/test/java/org/projectfloodlight/openflow/types/IPv6AddressTest.java index 672a0e1..6eb5743 100644 --- a/java_gen/pre-written/src/test/java/org/projectfloodlight/openflow/types/IPv6AddressTest.java +++ b/java_gen/pre-written/src/test/java/org/projectfloodlight/openflow/types/IPv6AddressTest.java
@@ -38,26 +38,6 @@ this.input = input; } - public WithMaskTaskCase hasMask() { - this.hasMask = true; - return this; - } - - public WithMaskTaskCase maskLength(int l) { - this.hasMask = l < 128; - for(int j=0; j < 8; j++) { - int pos = j * 8; - int index = Math.max(0, Math.min(7, pos - l)); - - if(index == 0) { - expectedMask[j] = 0; - } else { - expectedMask[j] = (byte) (-1 << index); - } - } - return this; - } - public WithMaskTaskCase maskHex(String string) { string = string.replaceAll(" ", ""); this.hasMask = true;