@@ -148,15 +148,7 @@ public final class Configuration {
148
148
*/
149
149
private String includeRoot ;
150
150
private List <RepositoryInfo > repositories ;
151
- /**
152
- * @deprecated This is kept around so not to break object deserialization
153
- * but it is ignored and cannot be truly set. This should mean that the
154
- * configuration is written leaving out this deprecated property; so after
155
- * some time it can be retired with the expectation that zero or a
156
- * miniscule number of production configurations still have this deprecated
157
- * property.
158
- */
159
- private String urlPrefix ;
151
+
160
152
private boolean generateHtml ;
161
153
/**
162
154
* Default projects will be used, when no project is selected and no project
@@ -187,17 +179,7 @@ public final class Configuration {
187
179
private String webappLAF ;
188
180
private RemoteSCM remoteScmSupported ;
189
181
private boolean optimizeDatabase ;
190
- /**
191
- * @deprecated This is kept around so not to break object de-serialization.
192
- * <p>Anyone who is using `--lock on` will now be setting
193
- * {@link #luceneLocking} and resetting this field back to its default
194
- * value. This should mean that the configuration is written leaving out
195
- * this deprecated property; so after some time it can be retired with the
196
- * expectation that zero or a miniscule number of production configurations
197
- * still have this deprecated property.
198
- */
199
- @ Deprecated
200
- private boolean usingLuceneLocking ;
182
+
201
183
private LuceneLockName luceneLocking = LuceneLockName .OFF ;
202
184
private boolean compressXref ;
203
185
private boolean indexVersionedFilesOnly ;
@@ -477,12 +459,10 @@ public Configuration() {
477
459
setStatisticsFilePath (null );
478
460
//setTabSize(4);
479
461
setTagsEnabled (false );
480
- //urlPrefix's constant value is moved to RuntimeEnvironment.
481
462
//setUserPage("http://www.myserver.org/viewProfile.jspa?username=");
482
463
// Set to empty string so we can append it to the URL
483
464
// unconditionally later.
484
465
setUserPageSuffix ("" );
485
- setUsingLuceneLocking (false );
486
466
setVerbose (false );
487
467
setWebappLAF ("default" );
488
468
}
@@ -811,7 +791,7 @@ public void setDataRoot(String dataRoot) {
811
791
}
812
792
813
793
/**
814
- * If {@link includeRoot} is not set, {@link dataRoot} will be returned.
794
+ * If {@link # includeRoot} is not set, {@link # dataRoot} will be returned.
815
795
* @return web include root directory
816
796
*/
817
797
public String getIncludeRoot () {
@@ -834,23 +814,6 @@ public void addRepositories(List<RepositoryInfo> repositories) {
834
814
this .repositories .addAll (repositories );
835
815
}
836
816
837
- public String getUrlPrefix () {
838
- return urlPrefix ;
839
- }
840
-
841
- /**
842
- * Formerly this allowed setting the URL prefix to be used for the Java
843
- * class analyzer and for language cross-referencing (xref) when they
844
- * created HTML links. Now, a static value is used and transformed as
845
- * necessary to the servlet {@code contextPath} so that users can deploy
846
- * OpenGrok as they like.
847
- * @param urlPrefix ignored
848
- */
849
- @ Deprecated
850
- public void setUrlPrefix (String urlPrefix ) {
851
- // ignore the value
852
- }
853
-
854
817
public void setGenerateHtml (boolean generateHtml ) {
855
818
this .generateHtml = generateHtml ;
856
819
}
@@ -1026,23 +989,6 @@ public void setOptimizeDatabase(boolean optimizeDatabase) {
1026
989
this .optimizeDatabase = optimizeDatabase ;
1027
990
}
1028
991
1029
- @ Deprecated
1030
- public boolean isUsingLuceneLocking () {
1031
- return LuceneLockName .SIMPLE .equals (luceneLocking ) ||
1032
- LuceneLockName .ON .equals (luceneLocking );
1033
- }
1034
-
1035
- @ Deprecated
1036
- public boolean getUsingLuceneLocking () {
1037
- return isUsingLuceneLocking ();
1038
- }
1039
-
1040
- @ Deprecated
1041
- public void setUsingLuceneLocking (boolean useLuceneLocking ) {
1042
- setLuceneLocking (useLuceneLocking ? LuceneLockName .ON :
1043
- LuceneLockName .OFF );
1044
- }
1045
-
1046
992
public LuceneLockName getLuceneLocking () {
1047
993
return luceneLocking ;
1048
994
}
@@ -1053,8 +999,6 @@ public LuceneLockName getLuceneLocking() {
1053
999
*/
1054
1000
public void setLuceneLocking (LuceneLockName value ) {
1055
1001
this .luceneLocking = value ;
1056
- // Set the following to default(boolean) regardless of `value'.
1057
- this .usingLuceneLocking = false ;
1058
1002
}
1059
1003
1060
1004
public void setCompressXref (boolean compressXref ) {
0 commit comments