vitorsousa pushed a commit to branch master.

http://git.enlightenment.org/tools/examples.git/commit/?id=44155d8827cc7f9690537ca01a889240b37f3efd

commit 44155d8827cc7f9690537ca01a889240b37f3efd
Author: Xavi Artigas <[email protected]>
Date:   Mon Sep 17 11:58:34 2018 -0300

    csharp: Remove Flush() from eina.Value examples
    
    Summary:
    Flush() is not required, the bindings take care of memory. Moreover, it is
    confusing for the C# developer, unaccostumed to having to free memory.
    
    Reviewers: vitor.sousa, lauromoura
    
    Reviewed By: vitor.sousa
    
    Differential Revision: https://phab.enlightenment.org/D7036
---
 reference/csharp/eina/src/eina_value.cs | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/reference/csharp/eina/src/eina_value.cs 
b/reference/csharp/eina/src/eina_value.cs
index 96e137a9..0822798c 100644
--- a/reference/csharp/eina/src/eina_value.cs
+++ b/reference/csharp/eina/src/eina_value.cs
@@ -24,7 +24,6 @@ public class Example
         // It can easily be converted to a string
         string str = int_val.ToString();
         Console.WriteLine("int_val to string is \"{0}\"", str);
-        int_val.Flush();
     }
 
     static void ValueString()
@@ -40,7 +39,6 @@ public class Example
         // To string should have the same content
         string newstr = str_val.ToString();
         Console.WriteLine("str_val to string is \"{0}\"", newstr);
-        str_val.Flush();
     }
 
     static void ValueConvert()
@@ -66,9 +64,6 @@ public class Example
         str_val.ConvertTo(int_val);
         int_val.Get(out i2);
         Console.WriteLine("str_val was \"{0}\", converted to int is {1}", 
str2, i2);
-
-        str_val.Flush();
-        int_val.Flush();
     }
 
     public static void Main()

-- 


Reply via email to