Author: Carlos Lopez <[email protected]>
Date:   Tue Jun  5 18:13:23 2012 +0200

Remove unused code

---

 synfig-core/src/synfig/color.cpp |   37 -------------------------------------
 1 files changed, 0 insertions(+), 37 deletions(-)

diff --git a/synfig-core/src/synfig/color.cpp b/synfig-core/src/synfig/color.cpp
index d9b5c2f..d81a507 100644
--- a/synfig-core/src/synfig/color.cpp
+++ b/synfig-core/src/synfig/color.cpp
@@ -536,43 +536,6 @@ blendfunc_ALPHA_OVER(C &a,C &b,float amount)
 Color
 Color::blend(Color a, Color b,float amount, Color::BlendMethod type)
 {
-#if 0
-       if(isnan(a.get_r()) || isnan(a.get_g()) || isnan(a.get_b()))
-       {
-#ifdef _DEBUG
-               a=magenta().set_a(a.get_a());
-#else
-               a=black().set_a(a.get_a());
-#endif
-       }
-
-       if(isnan(b.get_r()) || isnan(b.get_g()) || isnan(b.get_b()))
-       {
-#ifdef _DEBUG
-               b=magenta().set_a(b.get_a());
-#else
-               b=black().set_a(b.get_a());
-#endif
-       }
-#endif
-
-/*
-       if(!a.is_valid()&&b.is_valid())
-               return b;
-
-       if(a.is_valid()&&!b.is_valid())
-               return a;
-
-       if(!a.is_valid()||!b.is_valid())
-       {
-#ifdef _DEBUG
-               return magenta();
-#else
-               return black();
-#endif
-       }
-*/
-
        // No matter what blend method is being used,
        // if the amount is equal to zero, then only B
        // will shine through


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to