[gnome-calculator/wip/ricotz/gcalc: 7/11] gcalc: Remove superfluous "new" modifiers on virtual methods



commit 5b237e802ba57a28ca66f48617f6aa279b556f00
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Oct 7 20:02:24 2019 +0200

    gcalc: Remove superfluous "new" modifiers on virtual methods

 gcalc/gcalc-gexpression.vala | 4 ++--
 gcalc/gcalc-gfunction.vala   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gcalc/gcalc-gexpression.vala b/gcalc/gcalc-gexpression.vala
index ea35587f..43752606 100644
--- a/gcalc/gcalc-gexpression.vala
+++ b/gcalc/gcalc-gexpression.vala
@@ -26,14 +26,14 @@ public class GCalc.GExpression : Object, Expression {
   // Expression
   public weak Expression parent { get; set; }
   public ExpressionContainer expressions { get { return exps; } }
-  public new virtual string to_string () {
+  public virtual string to_string () {
     string s = "";
     foreach (Expression e in expressions) {
       s += e.to_string ();
     }
     return s;
   }
-  public new virtual Result solve () {
+  public virtual Result solve () {
     return new GErrorResult ("Invalid expression");
   }
 }
diff --git a/gcalc/gcalc-gfunction.vala b/gcalc/gcalc-gfunction.vala
index bfb29479..5b6bbe3c 100644
--- a/gcalc/gcalc-gfunction.vala
+++ b/gcalc/gcalc-gfunction.vala
@@ -49,7 +49,7 @@ public class GCalc.GFunction : GExpression, Function, Hashable {
     return s;
   }
 
-  public new virtual Expression evaluate () throws GLib.Error {
+  public virtual Expression evaluate () throws GLib.Error {
     return new GErrorExpression ();
   }
   // Hashable


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]