Skip to content

Commit 1b26df7

Browse files
committed
Delete unused fileUpdate()
1 parent b5b252e commit 1b26df7

File tree

3 files changed

+3
-19
lines changed

3 files changed

+3
-19
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/index/DefaultIndexChangedListener.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
/*
2121
* Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
22-
* Portions Copyright (c) 2018, Chris Fraire <[email protected]>.
22+
* Portions Copyright (c) 2018, 2020, Chris Fraire <[email protected]>.
2323
*/
2424
package org.opengrok.indexer.index;
2525

@@ -50,10 +50,6 @@ public void fileAdd(String path, String analyzer) {
5050
public void fileRemove(String path) {
5151
LOGGER.log(Level.FINE, "Remove file:{0}", path);
5252
}
53-
@Override
54-
public void fileUpdate(String path) {
55-
LOGGER.log(Level.FINE, "Update: {0}", path);
56-
}
5753

5854
@Override
5955
public void fileAdded(String path, String analyzer) {

opengrok-indexer/src/main/java/org/opengrok/indexer/index/IndexChangedListener.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
/*
2121
* Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
22+
* Portions Copyright (c) 2020, Chris Fraire <[email protected]>.
2223
*/
2324
package org.opengrok.indexer.index;
2425

@@ -50,9 +51,4 @@ public interface IndexChangedListener {
5051
* @param path The path to the file (absolute from source root)
5152
*/
5253
void fileRemoved(String path);
53-
/**
54-
* A file is to be updated in the index database.
55-
* @param path The path to the file (absolute from source root)
56-
*/
57-
void fileUpdate(String path);
5854
}

opengrok-indexer/src/test/java/org/opengrok/indexer/index/IndexerTest.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
/*
2121
* Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
22-
* Portions Copyright (c) 2017-2019, Chris Fraire <[email protected]>.
22+
* Portions Copyright (c) 2017-2020, Chris Fraire <[email protected]>.
2323
* Portions Copyright (c) 2020, Ric Harris <[email protected]>.
2424
*/
2525
package org.opengrok.indexer.index;
@@ -202,10 +202,6 @@ public void fileAdded(String path, String analyzer) {
202202
public void fileRemove(String path) {
203203
}
204204

205-
@Override
206-
public void fileUpdate(String path) {
207-
}
208-
209205
@Override
210206
public void fileRemoved(String path) {
211207
removedFiles.add(path);
@@ -281,10 +277,6 @@ public void fileAdded(String path, String analyzer) {
281277
public void fileRemove(String path) {
282278
}
283279

284-
@Override
285-
public void fileUpdate(String path) {
286-
}
287-
288280
@Override
289281
public void fileRemoved(String path) {
290282
// The test for the file existence needs to be performed here

0 commit comments

Comments
 (0)