Commit 5d4e9d3634a3696e2835efbb78d0e7401f8a0780

Authored by Gethin James
1 parent cd7bf82f1c
Exists in master

SEARCH-224: Removed unused enum values

src/main/java/org/alfresco/repo/index/shard/ShardMethodEnum.java
... ... @@ -35,9 +35,7 @@ public enum ShardMethodEnum
35 35 MOD_ACL_ID,
36 36 ACL_ID,
37 37 DB_ID,
38   - DATE,//Time stamp
39   - DATE_YEAR,
40   - DATE_MONTH,
  38 + DATE,
41 39 UNKOWN,
42 40 PROPERTY;
43 41  
... ... @@ -64,12 +62,6 @@ public enum ShardMethodEnum
64 62 case "DATE":
65 63 shardMethodEnum = DATE;
66 64 break;
67   - case "DATE_YEAR":
68   - shardMethodEnum = DATE_YEAR;
69   - break;
70   - case "DATE_MONTH":
71   - shardMethodEnum = DATE_MONTH;
72   - break;
73 65 case "PROPERTY":
74 66 shardMethodEnum = PROPERTY;
75 67 break;
... ...
src/test/java/org/alfresco/repo/index/ShardMethodEnumTest.java
... ... @@ -59,16 +59,6 @@ public class ShardMethodEnumTest
59 59 Assert.assertEquals(ShardMethodEnum.DATE, ShardMethodEnum.getShardMethod("DATE"));
60 60 }
61 61 @Test
62   - public void testTypeDateYear()
63   - {
64   - Assert.assertEquals(ShardMethodEnum.DATE_YEAR, ShardMethodEnum.getShardMethod("DATE_YEAR"));
65   - }
66   - @Test
67   - public void testTypeDateMonth()
68   - {
69   - Assert.assertEquals(ShardMethodEnum.DATE_MONTH, ShardMethodEnum.getShardMethod("DATE_MONTH"));
70   - }
71   - @Test
72 62 public void testTypeProperty()
73 63 {
74 64 Assert.assertEquals(ShardMethodEnum.PROPERTY, ShardMethodEnum.getShardMethod("PROPERTY"));
... ...