Allon Mureinik has uploaded a new change for review.

Change subject: core,webadmin: Remove unused DateTime methods
......................................................................

core,webadmin: Remove unused DateTime methods

Change-Id: I3dcb8be6ca44e6f7fa1e1ca7bb4f0f5a647370ad
Signed-off-by: Allon Mureinik <[email protected]>
---
M 
backend/manager/modules/compat/src/main/java/org/ovirt/engine/core/compat/DateTime.java
M 
frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/DateTime.java
2 files changed, 0 insertions(+), 62 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/04/22004/1

diff --git 
a/backend/manager/modules/compat/src/main/java/org/ovirt/engine/core/compat/DateTime.java
 
b/backend/manager/modules/compat/src/main/java/org/ovirt/engine/core/compat/DateTime.java
index ecca4a8..a5d0885 100644
--- 
a/backend/manager/modules/compat/src/main/java/org/ovirt/engine/core/compat/DateTime.java
+++ 
b/backend/manager/modules/compat/src/main/java/org/ovirt/engine/core/compat/DateTime.java
@@ -2,17 +2,12 @@
 
 import java.text.DateFormat;
 import java.text.DateFormatSymbols;
-import java.text.SimpleDateFormat;
 import java.util.Calendar;
 import java.util.Date;
 import java.util.GregorianCalendar;
 
 public class DateTime extends Date {
     private static final String dayNames[] = new 
DateFormatSymbols().getWeekdays();
-
-    public DateTime(int year, int month, int date) {
-        this(new Date(year, month, date));
-    }
 
     public DateTime() {
         this(getMinValue());
@@ -42,21 +37,6 @@
 
     public DayOfWeek getDayOfWeek() {
         return DayOfWeek.forValue(this.getDay());
-    }
-
-    public String toString(String formatString) {
-        // c# compatibility
-        boolean compat = false;
-        if (formatString.equals("yyyy-MM-ddTHH:mm:ss")) {
-            formatString = "yyyy-MM-ddHH:mm:ss";
-            compat = true;
-        }
-        SimpleDateFormat fmt = new SimpleDateFormat(formatString);
-        String returnedValue = fmt.format(this);
-        if (compat) {
-            returnedValue = returnedValue.substring(0, 10) + "T" + 
returnedValue.substring(10);
-        }
-        return returnedValue;
     }
 
     public String toString(DateFormat dateFormat) {
diff --git 
a/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/DateTime.java
 
b/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/DateTime.java
index e51a303..eb9a594 100644
--- 
a/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/DateTime.java
+++ 
b/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/DateTime.java
@@ -1,21 +1,12 @@
 package org.ovirt.engine.core.compat;
 
-import java.util.ArrayList;
 import java.util.Date;
-import com.google.gwt.i18n.client.DateTimeFormat;
 import com.google.gwt.user.datepicker.client.CalendarUtil;
 
 
 public class DateTime extends Date {
 
-    //public static Date Now = new DateTime();
-//    public static DateTime Now2 = new DateTime();
-
     private static final String dayNames[] = 
EnumCompat.GetNames(DayOfWeek.class);
-
-    public DateTime(int year, int month, int date) {
-        this(new Date(year, month, date));
-    }
 
     public DateTime() {
         this(getMinValue());
@@ -31,39 +22,6 @@
 
     public DayOfWeek getDayOfWeek() {
         return DayOfWeek.forValue(this.getDay());
-    }
-
-    public long getTicks() {
-        return this.getTime();
-    }
-
-    public long getTotalMilliseconds() {
-        return this.getTime();
-    }
-
-    public DateTime(int i) {
-        super(i);
-    }
-
-    public String toString(String formatString) {
-        //c# compatibility
-        boolean compat = false;
-        if(formatString.equals("yyyy-MM-ddTHH:mm:ss"))
-        {
-            formatString = "yyyy-MM-ddHH:mm:ss";
-            compat = true;
-        }
-
-        //TODO: GWT-TODO should be replaced
-        /*
-        SimpleDateFormat fmt = new SimpleDateFormat(formatString) ;
-        String returnedValue = fmt.format(this);
-        if(compat)
-        {
-            returnedValue = 
returnedValue.substring(0,10)+"T"+returnedValue.substring(10);
-        }
-        return  returnedValue;*/
-        return null;
     }
 
     //TODO: GWT-TODO public String toString(DateFormat dateFormat) {


-- 
To view, visit http://gerrit.ovirt.org/22004
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3dcb8be6ca44e6f7fa1e1ca7bb4f0f5a647370ad
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to