Skip to content

Commit 508bfc5

Browse files
committed
Remove FileMode.getMode()
The octal value associated to `FileMode` is not very useful to users, since it is only used internally, when generating the tree id. Therefore we can probably remove the getter for now.
1 parent e832566 commit 508bfc5

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

src/main/java/org/apache/commons/codec/digest/GitIdentifiers.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -180,29 +180,14 @@ private static FileMode get(final Path path) {
180180
return REGULAR;
181181
}
182182

183-
/**
184-
* The octal mode as used by Git.
185-
*/
186-
private final String mode;
187-
188183
/**
189184
* Serialized {@code mode}: since this is mutable, it must remain private.
190185
*/
191186
private final byte[] modeBytes;
192187

193188
FileMode(final String mode) {
194-
this.mode = mode;
195189
this.modeBytes = mode.getBytes(StandardCharsets.US_ASCII);
196190
}
197-
198-
/**
199-
* Gets the octal mode as used by Git.
200-
*
201-
* @return The octal mode.
202-
*/
203-
public String getMode() {
204-
return mode;
205-
}
206191
}
207192

208193
/**

0 commit comments

Comments
 (0)