Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit e25aee4

Browse files
Removing unused methods
1 parent 93c8daa commit e25aee4

1 file changed

Lines changed: 3 additions & 24 deletions

File tree

  • google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2

google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CivilTimeEncoder.java

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -279,43 +279,22 @@ private static int getFieldFromBitField(long bitField, long mask, int shift) {
279279
return (int) ((bitField & mask) >> shift);
280280
}
281281

282-
private static void checkValidTimeSeconds(LocalDateTime time) {
283-
checkArgument(time.getHour() >= 0 && time.getHour() <= 23);
284-
checkArgument(time.getMinute() >= 0 && time.getMinute() <= 59);
285-
checkArgument(time.getSecond() >= 0 && time.getSecond() <= 59);
286-
}
287-
288282
private static void checkValidTimeSeconds(LocalTime time) {
289283
checkArgument(time.getHour() >= 0 && time.getHour() <= 23);
290284
checkArgument(time.getMinute() >= 0 && time.getMinute() <= 59);
291285
checkArgument(time.getSecond() >= 0 && time.getSecond() <= 59);
292286
}
293287

294-
private static void checkValidTimeMillis(LocalDateTime time) {
295-
checkValidTimeSeconds(time);
296-
checkArgument(time.getNano() >= 0 && time.getNano() < 999999999);
297-
}
298-
299-
private static void checkValidTimeMillis(LocalTime time) {
300-
checkValidTimeSeconds(time);
301-
checkArgument(time.getNano() >= 0 && time.getNano() <= 999999999);
302-
}
303-
304-
private static void checkValidTimeMicros(LocalTime time) {
305-
checkValidTimeSeconds(time);
306-
checkArgument(time.equals(time.truncatedTo(ChronoUnit.MICROS)));
307-
}
308-
309288
private static void checkValidDateTimeSeconds(LocalDateTime dateTime) {
310289
checkArgument(dateTime.getYear() >= 1 && dateTime.getYear() <= 9999);
311290
checkArgument(dateTime.getMonthValue() >= 1 && dateTime.getMonthValue() <= 12);
312291
checkArgument(dateTime.getDayOfMonth() >= 1 && dateTime.getDayOfMonth() <= 31);
313292
checkValidTimeSeconds(dateTime.toLocalTime());
314293
}
315294

316-
private static void checkValidDateTimeMillis(LocalDateTime dateTime) {
317-
checkValidDateTimeSeconds(dateTime);
318-
checkArgument(dateTime.getNano() >= 0 && dateTime.getNano() <= 999999999);
295+
private static void checkValidTimeMicros(LocalTime time) {
296+
checkValidTimeSeconds(time);
297+
checkArgument(time.equals(time.truncatedTo(ChronoUnit.MICROS)));
319298
}
320299

321300
private static void checkValidDateTimeMicros(LocalDateTime dateTime) {

0 commit comments

Comments
 (0)